[General] Model ActorList on Container more closely by including action

0.6.1
David Cernat 8 years ago
parent c65e94587c
commit 8f18dc87c4

@ -12,10 +12,16 @@ void PacketActorList::Packet(RakNet::BitStream *bs, bool send)
{ {
WorldPacket::Packet(bs, send); WorldPacket::Packet(bs, send);
if (!send) RW(event->action, send);
event->objectChanges.objects.clear();
else if (send)
{
event->objectChanges.count = (unsigned int)(event->objectChanges.objects.size()); event->objectChanges.count = (unsigned int)(event->objectChanges.objects.size());
}
else
{
event->objectChanges.objects.clear();
}
RW(event->objectChanges.count, send); RW(event->objectChanges.count, send);

Loading…
Cancel
Save