mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04: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
@ -395,6 +395,10 @@ void DedicatedPlayer::setCell()
|
|||||||
else
|
else
|
||||||
world->enable(getPtr());
|
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
|
// Allow this player's reference to move across a cell now that a manual cell
|
||||||
// update has been called
|
// update has been called
|
||||||
setPtr(world->moveObject(ptr, cellStore, position.pos[0], position.pos[1], position.pos[2]));
|
setPtr(world->moveObject(ptr, cellStore, position.pos[0], position.pos[1], position.pos[2]));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user