mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +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)
|
if (selection != to)
|
||||||
select(to);
|
select(to);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CAdvMapInt::centerOn(int3 on)
|
void CAdvMapInt::centerOn(int3 on)
|
||||||
{
|
{
|
||||||
bool switchedLevels = on.z != position.z;
|
bool switchedLevels = on.z != position.z;
|
||||||
@ -780,6 +781,7 @@ void CAdvMapInt::centerOn(int3 on)
|
|||||||
underground->redraw();
|
underground->redraw();
|
||||||
if (switchedLevels)
|
if (switchedLevels)
|
||||||
minimap.setLevel(position.z);
|
minimap.setLevel(position.z);
|
||||||
|
minimap.redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CAdvMapInt::centerOn(const CGObjectInstance *obj)
|
void CAdvMapInt::centerOn(const CGObjectInstance *obj)
|
||||||
|
Loading…
Reference in New Issue
Block a user