1
0
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:
Ivan Savenko 2023-07-15 13:05:06 +03:00
parent 8a92941681
commit 189a0c6e0d

View File

@ -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();
}