X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.cpp;h=baefdc5ef59c91e5095bc0999dcd14e95125549f;hb=c49d46cbfbd7720627af2414e94963850fe8eed6;hp=51e99869f618588b2bb09b3b76dfdde1b9cbc687;hpb=5d1a76ae7725af998c6ee46adfe492c68ee1d34f;p=l2e.git diff --git a/src/map/MapState.cpp b/src/map/MapState.cpp index 51e9986..baefdc5 100644 --- a/src/map/MapState.cpp +++ b/src/map/MapState.cpp @@ -139,7 +139,9 @@ void MapState::OnTileLock() { StopFollowers(*controlled); if (!moveTimer.Running()) { int tileSize((controlled->GetOrientation() % 2) ? map->Tileset()->Width() : map->Tileset()->Height()); - moveTimer = PhysicsTimers().StartInterval(tileSize/walkingSpeed.Int()); + Fixed<8> walkingInterval(tileSize); + walkingInterval /= walkingSpeed; + moveTimer = PhysicsTimers().StartInterval(walkingInterval.Int()); } pushed = 0; }