Pārlūkot izejas kodu

Fix centering on selected map object on loading save

Ivan Savenko 1 gadu atpakaļ
vecāks
revīzija
575d15c425
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      client/adventureMap/AdventureMapInterface.cpp

+ 2 - 0
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();