From 36efef0ee33a4987bc68e421af68f99ef7e8c1d7 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 17 Jul 2023 16:30:12 +0300 Subject: [PATCH] Do not play new day animation on game start --- client/adventureMap/AdventureMapInterface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/adventureMap/AdventureMapInterface.cpp b/client/adventureMap/AdventureMapInterface.cpp index 7ee136edd..740b84a48 100644 --- a/client/adventureMap/AdventureMapInterface.cpp +++ b/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);