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:
parent
6cd3d1b30e
commit
818a766fd6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user