[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) if (forceUpdate || (positionTimer += MWBase::Environment::get().getFrameDuration()) >= timeoutSec)
{ {
positionTimer = 0;
MWBase::World *world = MWBase::Environment::get().getWorld(); MWBase::World *world = MWBase::Environment::get().getWorld();
MWWorld::Ptr player = world->getPlayerPtr(); MWWorld::Ptr player = world->getPlayerPtr();