From 63dd2d924670e4fa74a78c60f00151b29f15ed3a Mon Sep 17 00:00:00 2001 From: David Cernat Date: Wed, 3 May 2017 04:43:59 +0300 Subject: [PATCH] [General] Remove code related to ActorAuthority packets that is not used --- .../actor/ProcessorActorAuthority.hpp | 2 +- .../Packets/Actor/PacketActorAuthority.cpp | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/apps/openmw-mp/processors/actor/ProcessorActorAuthority.hpp b/apps/openmw-mp/processors/actor/ProcessorActorAuthority.hpp index 7067d542a..9d2a196eb 100644 --- a/apps/openmw-mp/processors/actor/ProcessorActorAuthority.hpp +++ b/apps/openmw-mp/processors/actor/ProcessorActorAuthority.hpp @@ -15,7 +15,7 @@ namespace mwmp void Do(ActorPacket &packet, Player &player, BaseActorList &actorList) override { - packet.Send(true); + // In the current implementation, only the server should be able to send ActorAuthority packets } }; } diff --git a/components/openmw-mp/Packets/Actor/PacketActorAuthority.cpp b/components/openmw-mp/Packets/Actor/PacketActorAuthority.cpp index d088005d9..3ee58a330 100644 --- a/components/openmw-mp/Packets/Actor/PacketActorAuthority.cpp +++ b/components/openmw-mp/Packets/Actor/PacketActorAuthority.cpp @@ -23,23 +23,4 @@ void PacketActorAuthority::Packet(RakNet::BitStream *bs, bool send) RW(actorList->cell.mData.mX, send); RW(actorList->cell.mData.mY, send); RW(actorList->cell.mName, send); - - BaseActor actor; - - for (unsigned int i = 0; i < actorList->count; i++) - { - if (send) - { - actor = actorList->baseActors.at(i); - } - - RW(actor.refId, send); - RW(actor.refNumIndex, send); - RW(actor.mpNum, send); - - if (!send) - { - actorList->baseActors.push_back(actor); - } - } }