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:
authorvng <viktor.govako@gmail.com>2014-09-26 15:44:57 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:29:03 +0300
commit163a69a515e765ca58de65e9acc0f75193d88abd (patch)
treec9364cfecdd563bbe0be11bc9322b578483f8c4b /map/location_state.cpp
parent010c86d5434d9b2d1c8f28b3c5d0fdff80bd1114 (diff)
[location] Refactoring of native -> cross platform passing location parameters.
Diffstat (limited to 'map/location_state.cpp')
-rw-r--r--map/location_state.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/map/location_state.cpp b/map/location_state.cpp
index 72b3651dcb..475baaa506 100644
--- a/map/location_state.cpp
+++ b/map/location_state.cpp
@@ -320,10 +320,7 @@ void State::OnCompassUpdate(location::CompassInfo const & info)
{
SetModeInfo(IncludeModeBit(m_modeInfo, KnownDirectionBit));
- if (info.m_trueHeading >= 0.0)
- m_drawDirection = info.m_trueHeading;
- else
- m_drawDirection = info.m_magneticHeading;
+ m_drawDirection = info.m_bearing;
AnimateFollow();
invalidate();