1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed 1888 - centering adv.map will also redraw minimap

This commit is contained in:
Ivan Savenko 2014-09-18 17:53:41 +03:00
parent 6cd3d1b30e
commit 818a766fd6

View File

@ -765,6 +765,7 @@ void CAdvMapInt::selectionChanged()
if (selection != to)
select(to);
}
void CAdvMapInt::centerOn(int3 on)
{
bool switchedLevels = on.z != position.z;
@ -780,6 +781,7 @@ void CAdvMapInt::centerOn(int3 on)
underground->redraw();
if (switchedLevels)
minimap.setLevel(position.z);
minimap.redraw();
}
void CAdvMapInt::centerOn(const CGObjectInstance *obj)