浏览代码

Merge pull request #1129 from IvanSavenko/new_day_sound_fix

Fixes #825 - do not wait for new week dialog in single-player
Andrii Danylchenko 2 年之前
父节点
当前提交
b6bcfec329
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      client/CPlayerInterface.cpp

+ 4 - 1
client/CPlayerInterface.cpp

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