From 575d15c425d73c64a45b3d7c67a74d6f8e3d2e47 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 8 Jul 2024 20:52:37 +0000 Subject: [PATCH] Fix centering on selected map object on loading save --- client/adventureMap/AdventureMapInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/adventureMap/AdventureMapInterface.cpp b/client/adventureMap/AdventureMapInterface.cpp index 996d4d14c..43f005199 100644 --- a/client/adventureMap/AdventureMapInterface.cpp +++ b/client/adventureMap/AdventureMapInterface.cpp @@ -444,6 +444,8 @@ void AdventureMapInterface::onPlayerTurnStarted(PlayerColor playerID) LOCPLINT->localState->setSelection(LOCPLINT->localState->getWanderingHero(0)); } + centerOnObject(LOCPLINT->localState->getCurrentArmy()); + //show new day animation and sound on infobar, except for 1st day of the game if (LOCPLINT->cb->getDate(Date::DAY) != 1) widget->getInfoBar()->showDate();