added checking on the border of the world.

SetOrg call now only from animation task MoveScreenTask
This commit is contained in:
ExMix 2013-05-23 15:39:15 +03:00 committed by Alex Zolotarev
parent 94779ad870
commit 3dcd4e6032

View file

@ -589,7 +589,10 @@ void Navigator::SetAngle(double angle)
void Navigator::SetOrg(m2::PointD const & org)
{
m_Screen.SetOrg(org);
ScreenBase tmp = m_Screen;
tmp.SetOrg(org);
if (CheckBorders(tmp))
m_Screen = tmp;
}
void Navigator::Move(double azDir, double factor)