X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.cpp;h=8d9b278c89b8b52e4b30582d741145b58bdc325e;hb=65f855e8181613291670bf1ef84623fabc4594d9;hp=ec714d0588c646360746cad27003c96203c59634;hpb=9302f6869530e5492c73ef6f12f9cea348e8b2a6;p=l2e.git diff --git a/src/map/MapState.cpp b/src/map/MapState.cpp index ec714d0..8d9b278 100644 --- a/src/map/MapState.cpp +++ b/src/map/MapState.cpp @@ -102,8 +102,12 @@ void MapState::UpdateWorld(float deltaT) { } else { controlled->SetSpeed(0.0f); } + if (!controlled->AnimationRunning()) { + controlled->StartAnimation(*this); + } } else { controlled->SetSpeed(0.0f); + controlled->StopAnimation(); } if (nowLock != lastLock) { lastLock = nowLock;