瀏覽代碼

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);