소스 검색

Do not play new day animation on game start

Ivan Savenko 2 년 전
부모
커밋
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);