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

[Client] Set DedicatedPlayer's dynamic stats when its Ptr is enabled

Previously, players often started out in knockout animations when their Ptrs were first enabled because their fatigue started out at 0 and only updated itself afterwards.
This commit is contained in:
David Cernat 2020-11-11 15:13:14 +02:00
parent 4389d4417a
commit ec2e51825e

View file

@ -395,6 +395,10 @@ void DedicatedPlayer::setCell()
else
world->enable(getPtr());
// Make sure the Ptr's dynamic stats are up-to-date, so it doesn't show up knocked down when
// it shouldn't
setStatsDynamic();
// Allow this player's reference to move across a cell now that a manual cell
// update has been called
setPtr(world->moveObject(ptr, cellStore, position.pos[0], position.pos[1], position.pos[2]));