diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-10-21 22:17:53 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:31:20 +0300 |
commit | f174272edd6ea578f7eae186aac2d833b4a7f1a6 (patch) | |
tree | 84c103f858391455501299e6a7ab1a1d35549c14 /map/location_state.cpp | |
parent | d0981bebe8a94a94469fb930e9c7bd5da08e485e (diff) |
[core] animation bug-fix
Diffstat (limited to 'map/location_state.cpp')
-rw-r--r-- | map/location_state.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/map/location_state.cpp b/map/location_state.cpp index 3b06afaf41..e5717b115f 100644 --- a/map/location_state.cpp +++ b/map/location_state.cpp @@ -192,6 +192,9 @@ private: bool OnStep(anim::Task * task, double ts) { + if (!task->IsReady() && !task->IsRunning()) + return false; + if (task->IsReady()) { task->Start(); @@ -199,18 +202,12 @@ private: } if (task->IsRunning()) - { task->OnStep(ts); - return true; - } - if (!task->IsEnded()) - { + if (task->IsEnded()) task->OnEnd(ts); - return true; - } - return false; + return true; } private: |