1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Do not auto-remove dialogs such as new week

This commit is contained in:
Ivan Savenko 2024-08-04 13:14:28 +00:00
parent d36f90e6b6
commit e8c3252214

View File

@ -193,11 +193,6 @@ void CPlayerInterface::closeAllDialogs()
castleInt->close();
castleInt = nullptr;
// remove all pending dialogs that do not expect query answer
vstd::erase_if(dialogs, [](const std::shared_ptr<CInfoWindow> & window){
return window->ID == QueryID::NONE;
});
}
void CPlayerInterface::playerEndsTurn(PlayerColor player)
@ -1515,7 +1510,7 @@ void CPlayerInterface::update()
return;
//if there are any waiting dialogs, show them
if ((CSH->howManyPlayerInterfaces() <= 1 || makingTurn) && !dialogs.empty() && !showingDialog->isBusy())
if (makingTurn && !dialogs.empty() && !showingDialog->isBusy())
{
showingDialog->setBusy();
GH.windows().pushWindow(dialogs.front());