mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 16:11:37 -04:00
[General] Remove code related to ActorAuthority packets that is not used
This commit is contained in:
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…
x
Reference in New Issue
Block a user