1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Allow dialogs when in battle interface

But also it is not our turn
This commit is contained in:
MichalZr6 2024-08-23 18:03:58 +02:00 committed by Ivan Savenko
parent a7d4df9c33
commit 619b35ab33

View File

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