1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #1129 from IvanSavenko/new_day_sound_fix

Fixes #825 - do not wait for new week dialog in single-player
This commit is contained in:
Andrii Danylchenko
2022-11-14 17:45:57 +02:00
committed by GitHub

View File

@@ -2338,10 +2338,13 @@ void CPlayerInterface::acceptTurn()
while(CInfoWindow *iw = dynamic_cast<CInfoWindow *>(GH.topInt().get())) while(CInfoWindow *iw = dynamic_cast<CInfoWindow *>(GH.topInt().get()))
iw->close(); iw->close();
} }
waitWhileDialog();
if(CSH->howManyPlayerInterfaces() > 1) if(CSH->howManyPlayerInterfaces() > 1)
{
waitWhileDialog(); // wait for player to accept turn in hot-seat mode
adventureInt->startTurn(); adventureInt->startTurn();
}
adventureInt->heroList.update(); adventureInt->heroList.update();
adventureInt->townList.update(); adventureInt->townList.update();