1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

[General] Remove code related to ActorAuthority packets that is not used

This commit is contained in:
David Cernat 2017-05-03 04:43:59 +03:00
parent 0b40cb8919
commit 63dd2d9246
2 changed files with 1 additions and 20 deletions

View file

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

View file

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