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:
parent
4389d4417a
commit
ec2e51825e
1 changed files with 4 additions and 0 deletions
|
@ -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]));
|
||||
|
|
Loading…
Reference in a new issue