mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
[Client] Reset positionTimer on time expired
This commit is contained in:
parent
7e5e877fda
commit
80631ae8bd
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user