1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 18:45:31 +00:00

[Client] Fix graphical glitches related to DedicatedActor initialization

This commit is contained in:
David Cernat 2017-05-06 04:49:49 +03:00
parent 62aa6ed7ea
commit 3def111ca1
2 changed files with 4 additions and 6 deletions

View file

@ -175,4 +175,7 @@ void DedicatedActor::setPtr(const MWWorld::Ptr& newPtr)
refId = ptr.getCellRef().getRefId();
refNumIndex = ptr.getCellRef().getRefNum().mIndex;
mpNum = ptr.getCellRef().getMpNum();
position = ptr.getRefData().getPosition();
drawState = ptr.getClass().getCreatureStats(ptr).getDrawState();
}

View file

@ -125,12 +125,7 @@ void LocalActor::updateAnimFlags(bool forceUpdate)
#undef __SETFLAG
if (currentDrawState == MWMechanics::DrawState_Nothing)
drawState = 0;
else if (currentDrawState == MWMechanics::DrawState_Weapon)
drawState = 1;
else if (currentDrawState == MWMechanics::DrawState_Spell)
drawState = 2;
drawState = currentDrawState;
mwmp::Main::get().getNetworking()->getActorList()->addAnimFlagsActor(*this);
}