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

0.6.1
David Cernat 8 years ago
parent 0b40cb8919
commit 63dd2d9246

@ -15,7 +15,7 @@ namespace mwmp
void Do(ActorPacket &packet, Player &player, BaseActorList &actorList) override 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
} }
}; };
} }

@ -23,23 +23,4 @@ void PacketActorAuthority::Packet(RakNet::BitStream *bs, bool send)
RW(actorList->cell.mData.mX, send); RW(actorList->cell.mData.mX, send);
RW(actorList->cell.mData.mY, send); RW(actorList->cell.mData.mY, send);
RW(actorList->cell.mName, 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);
}
}
} }

Loading…
Cancel
Save