[Client] Reset positionTimer on time expired

0.6.1
Koncord 8 years ago
parent 7e5e877fda
commit 80631ae8bd

@ -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();

Loading…
Cancel
Save