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); - } - } }