diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-09-30 13:55:20 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:29:01 +0300 |
commit | 38f5304762fdc00c6742caba5c7fbbc37de44d3e (patch) | |
tree | 7234acd5e0dd412f711d8018acd5342c3366c83e /map/location_state.cpp | |
parent | 34b5b0ef8dcd40b61f00f63b1343f7000d7ffc5b (diff) |
review fixes
Diffstat (limited to 'map/location_state.cpp')
-rw-r--r-- | map/location_state.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/map/location_state.cpp b/map/location_state.cpp index 27e6c1e82c..72b3651dcb 100644 --- a/map/location_state.cpp +++ b/map/location_state.cpp @@ -704,7 +704,7 @@ bool State::IsRotationAllowed() const void State::Rotated() { m_afterPendingMode = NotFollow; - ASSERT(!IsInRouting() || GetMode() != RotateAndFollow, ()); + ASSERT(IsRotationAllowed(), ()); StopCompassFollowing(NotFollow); } @@ -739,6 +739,7 @@ bool ValidateTransition(State::Mode oldMode, State::Mode newMode) if (oldMode == State::PendingPosition) { return newMode == State::UnknownPosition || + newMode == State::NotFollow || newMode == State::Follow; } |