mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 06:15:32 +00:00
[General] Use ESM::Position to store BaseActor's movement
This commit is contained in:
parent
2709de83fb
commit
7662297334
2 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue