mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
[General] Set new BaseActor booleans in corresponding packets
This commit is contained in:
parent
730df061b3
commit
1a699329e5
@ -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…
x
Reference in New Issue
Block a user