diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-03-17 13:33:57 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:12:44 +0300 |
commit | 3ab2fbca8efbf94f89c23a2a353ecebf0444138f (patch) | |
tree | 8f58122bac6b36d8dd8e76b12de63cae1a66cdd2 /map/compass_arrow.cpp | |
parent | 8df9189558e5aab81f53b6ac02d7ac3a43f5b5bc (diff) |
review fix
Diffstat (limited to 'map/compass_arrow.cpp')
-rw-r--r-- | map/compass_arrow.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/map/compass_arrow.cpp b/map/compass_arrow.cpp index cfa3a0a6df..2cf4e2f3e3 100644 --- a/map/compass_arrow.cpp +++ b/map/compass_arrow.cpp @@ -32,14 +32,16 @@ CompassArrow::CompassArrow(Params const & p) void CompassArrow::AnimateShow() { - if (!isBaseVisible() && (m_animTask == NULL || IsHidingAnim())) + if (m_animTask == NULL || IsHidingAnim()) { - setIsVisible(true); - CreateAnim(0.1, 1.0, 0.2, 0.0, true); + if (!isBaseVisible()) + { + setIsVisible(true); + CreateAnim(0.1, 1.0, 0.2, 0.0, true); + } + else + CreateAnim(GetCurrentAlfa(), 1.0, 0.2, 0.0, true); } - - if (isBaseVisible() && (m_animTask == NULL || IsHidingAnim())) - CreateAnim(GetCurrentAlfa(), 1.0, 0.2, 0.0, true); } void CompassArrow::AnimateHide() |