Просмотр исходного кода

Do not play new day animation on game start

Ivan Savenko 2 лет назад
Родитель
Сommit
36efef0ee3
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      client/adventureMap/AdventureMapInterface.cpp

+ 3 - 2
client/adventureMap/AdventureMapInterface.cpp

@@ -394,8 +394,9 @@ void AdventureMapInterface::onPlayerTurnStarted(PlayerColor playerID)
 		LOCPLINT->localState->setSelection(LOCPLINT->localState->getWanderingHero(0));
 	}
 
-	//show new day animation and sound on infobar
-	widget->getInfoBar()->showDate();
+	//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();
 
 	onHeroChanged(nullptr);
 	Canvas canvas = Canvas::createFromSurface(screen);