mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +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->getInfoBar()->showSelection();
|
||||
|
||||
if (LOCPLINT && LOCPLINT->localState->getCurrentArmy())
|
||||
widget->getMapView()->onCenteredObject(LOCPLINT->localState->getCurrentArmy());
|
||||
|
||||
adjustActiveness();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user