1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-01 00:39:40 +00:00

[Client] Reset positionTimer on time expired

This commit is contained in:
Koncord 2017-06-02 20:45:19 +08:00
parent 7e5e877fda
commit 80631ae8bd

View file

@ -315,6 +315,7 @@ void LocalPlayer::updatePosition(bool forceUpdate)
if (forceUpdate || (positionTimer += MWBase::Environment::get().getFrameDuration()) >= timeoutSec)
{
positionTimer = 0;
MWBase::World *world = MWBase::Environment::get().getWorld();
MWWorld::Ptr player = world->getPlayerPtr();