[General] Use ESM::Position to store BaseActor's movement

pull/199/head
David Cernat 8 years ago
parent 2709de83fb
commit 7662297334

@ -21,6 +21,8 @@ namespace mwmp
int mpNum;
ESM::Position position;
ESM::Position direction;
ESM::Cell cell;
char drawState;
@ -34,9 +36,6 @@ namespace mwmp
AnimStates animStates;
bool hasAnimStates;
Movement movement;
bool hasMovement;
};
class BaseActorList

@ -38,6 +38,7 @@ void PacketActorPosition::Packet(RakNet::BitStream *bs, bool send)
RW(actor.refNumIndex, send);
RW(actor.mpNum, send);
RW(actor.position, send);
RW(actor.direction, send);
if (!send)
{

Loading…
Cancel
Save