mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-28 03:57:02 +02:00
Re-center map on active object after screen resize
This commit is contained in:
parent
8a92941681
commit
189a0c6e0d
@ -827,5 +827,8 @@ void AdventureMapInterface::onScreenResize()
|
|||||||
widget->getMinimap()->update();
|
widget->getMinimap()->update();
|
||||||
widget->getInfoBar()->showSelection();
|
widget->getInfoBar()->showSelection();
|
||||||
|
|
||||||
|
if (LOCPLINT && LOCPLINT->localState->getCurrentArmy())
|
||||||
|
widget->getMapView()->onCenteredObject(LOCPLINT->localState->getCurrentArmy());
|
||||||
|
|
||||||
adjustActiveness();
|
adjustActiveness();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user