diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-10-11 19:34:41 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:45:23 +0300 |
commit | f81ed7bd00ca324c400288d0a2df86151d9989cc (patch) | |
tree | 2cebd85a4f2bcbe7b30a658d96875a4f7bb309d5 /map/animator.cpp | |
parent | 0e4f41bfb531d6b49caa8ee8fc8de7216774108b (diff) |
made screen rotation speed consistent across different animation tasks.
Diffstat (limited to 'map/animator.cpp')
-rw-r--r-- | map/animator.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/map/animator.cpp b/map/animator.cpp index 0eb8913eac..2568fe0b8c 100644 --- a/map/animator.cpp +++ b/map/animator.cpp @@ -11,7 +11,7 @@ Animator::Animator(Framework * framework) : m_framework(framework) {} -void Animator::RotateScreen(double startAngle, double endAngle, double duration) +void Animator::RotateScreen(double startAngle, double endAngle) { if (m_rotateScreenTask) m_rotateScreenTask->Lock(); @@ -35,7 +35,7 @@ void Animator::RotateScreen(double startAngle, double endAngle, double duration) m_rotateScreenTask.reset(new RotateScreenTask(m_framework, startAngle, endAngle, - duration)); + GetRotationSpeed())); m_framework->GetAnimController()->AddTask(m_rotateScreenTask); return; @@ -103,3 +103,9 @@ void Animator::StopChangeViewport() m_changeViewportTask.reset(); } + +double Animator::GetRotationSpeed() const +{ + /// making full circle in 3 seconds. + return 3; +} |