mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 09:39:42 +00:00
[General] Set new BaseActor booleans in corresponding packets
This commit is contained in:
parent
730df061b3
commit
1a699329e5
3 changed files with 6 additions and 1 deletions
|
@ -15,7 +15,8 @@ namespace mwmp
|
|||
|
||||
BaseActor()
|
||||
{
|
||||
|
||||
hasPositionData = false;
|
||||
hasStatsDynamicData = false;
|
||||
}
|
||||
|
||||
std::string refId;
|
||||
|
|
|
@ -41,6 +41,8 @@ void PacketActorPosition::Packet(RakNet::BitStream *bs, bool send)
|
|||
RW(actor.position, send);
|
||||
RW(actor.direction, send);
|
||||
|
||||
actor.hasPositionData = true;
|
||||
|
||||
if (!send)
|
||||
{
|
||||
actorList->baseActors.push_back(actor);
|
||||
|
|
|
@ -43,6 +43,8 @@ void PacketActorStatsDynamic::Packet(RakNet::BitStream *bs, bool send)
|
|||
RW(actor.creatureStats.mDynamic[1], send); // magic
|
||||
RW(actor.creatureStats.mDynamic[2], send); // fatigue
|
||||
|
||||
actor.hasStatsDynamicData = true;
|
||||
|
||||
if (!send)
|
||||
{
|
||||
actorList->baseActors.push_back(actor);
|
||||
|
|
Loading…
Reference in a new issue