1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

CBattleInterface: avoid freezes on end of battle. Fix issue 1897

This commit is contained in:
Arseniy Shestakov 2017-03-19 05:15:31 +03:00
parent d622f37e66
commit 09d593e59b

View File

@ -1245,6 +1245,7 @@ void CBattleInterface::displayBattleFinished()
SDL_Rect temp_rect = genRect(561, 470, (screen->w - 800)/2 + 165, (screen->h - 600)/2 + 19);
resWindow = new CBattleResultWindow(*bresult, temp_rect, *this->curInt);
GH.pushInt(resWindow);
curInt->waitWhileDialog(); // Avoid freeze when AI end turn after battle. Check bug #1897
}
void CBattleInterface::spellCast(const BattleSpellCast *sc)