Review fixes

This commit is contained in:
r.kuznetsov 2016-03-15 14:06:29 +03:00 committed by Sergey Yershov
parent 8d085a0b88
commit 851225849f

View file

@ -419,12 +419,13 @@ void MyPositionController::Assign(location::CompassInfo const & info, ScreenBase
SetDirection(info.m_bearing);
if (!AlmostCurrentAzimut(oldAzimut) &&
GetMode() == location::MODE_ROTATE_AND_FOLLOW)
if (m_isPositionAssigned && !AlmostCurrentAzimut(oldAzimut) && GetMode() == location::MODE_ROTATE_AND_FOLLOW)
{
CreateAnim(GetDrawablePosition(), oldAzimut, screen);
m_isDirtyViewport = true;
}
m_isPositionAssigned = true;
}
void MyPositionController::SetDirection(double bearing)