Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExMix <rahuba.youri@mapswithme.com>2014-10-21 22:17:53 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:31:20 +0300
commitf174272edd6ea578f7eae186aac2d833b4a7f1a6 (patch)
tree84c103f858391455501299e6a7ab1a1d35549c14 /map/location_state.cpp
parentd0981bebe8a94a94469fb930e9c7bd5da08e485e (diff)
[core] animation bug-fix
Diffstat (limited to 'map/location_state.cpp')
-rw-r--r--map/location_state.cpp13
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: