1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

[General] Set new BaseActor booleans in corresponding packets

This commit is contained in:
David Cernat 2017-05-01 20:18:22 +03:00
parent 730df061b3
commit 1a699329e5
3 changed files with 6 additions and 1 deletions

View file

@ -15,7 +15,8 @@ namespace mwmp
BaseActor() BaseActor()
{ {
hasPositionData = false;
hasStatsDynamicData = false;
} }
std::string refId; std::string refId;

View file

@ -41,6 +41,8 @@ void PacketActorPosition::Packet(RakNet::BitStream *bs, bool send)
RW(actor.position, send); RW(actor.position, send);
RW(actor.direction, send); RW(actor.direction, send);
actor.hasPositionData = true;
if (!send) if (!send)
{ {
actorList->baseActors.push_back(actor); actorList->baseActors.push_back(actor);

View file

@ -43,6 +43,8 @@ void PacketActorStatsDynamic::Packet(RakNet::BitStream *bs, bool send)
RW(actor.creatureStats.mDynamic[1], send); // magic RW(actor.creatureStats.mDynamic[1], send); // magic
RW(actor.creatureStats.mDynamic[2], send); // fatigue RW(actor.creatureStats.mDynamic[2], send); // fatigue
actor.hasStatsDynamicData = true;
if (!send) if (!send)
{ {
actorList->baseActors.push_back(actor); actorList->baseActors.push_back(actor);