mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
Fixed #927.
This commit is contained in:
parent
b5526f0f54
commit
6ec3501909
@ -1997,7 +1997,7 @@ void CPlayerInterface::gameOver(ui8 player, bool victory )
|
|||||||
// showInfoDialog("Placeholder message: you won!");
|
// showInfoDialog("Placeholder message: you won!");
|
||||||
|
|
||||||
makingTurn = true;
|
makingTurn = true;
|
||||||
while(showingDialog->get() || dialogs.size()); //wait till all dialogs are displayed and closed
|
waitForAllDialogs(); //wait till all dialogs are displayed and closed
|
||||||
makingTurn = false;
|
makingTurn = false;
|
||||||
|
|
||||||
howManyPeople--;
|
howManyPeople--;
|
||||||
|
@ -4489,7 +4489,7 @@ void CGameHandler::checkLossVictory( ui8 player )
|
|||||||
peg.victory = vic;
|
peg.victory = vic;
|
||||||
sendAndApply(&peg);
|
sendAndApply(&peg);
|
||||||
|
|
||||||
if(vic > 0) //one player won -> all enemies lost
|
if(vic) //one player won -> all enemies lost
|
||||||
{
|
{
|
||||||
iw.text.localStrings.front().second++; //message about losing because enemy won first is just after victory message
|
iw.text.localStrings.front().second++; //message about losing because enemy won first is just after victory message
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user