浏览代码

Allow dialogs when in battle interface

But also it is not our turn
MichalZr6 1 年之前
父节点
当前提交
619b35ab33
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/CPlayerInterface.cpp

+ 1 - 1
client/CPlayerInterface.cpp

@@ -1010,7 +1010,7 @@ void CPlayerInterface::showInfoDialog(const std::string &text, const std::vector
 	}
 	std::shared_ptr<CInfoWindow> temp = CInfoWindow::create(text, playerID, components);
 
-	if (makingTurn && GH.windows().count() > 0 && LOCPLINT == this)
+	if ((makingTurn || battleInt) && GH.windows().count() > 0 && LOCPLINT == this)
 	{
 		CCS->soundh->playSound(static_cast<soundBase::soundID>(soundID));
 		showingDialog->setBusy();