Add missing checks for PF_FINISHED in HUD code
This commit is contained in:
parent
24744d07e4
commit
b4987636fe
|
@ -2106,7 +2106,7 @@ static void ST_drawTextHUD(void)
|
||||||
textHUDdraw(M_GetText("\x82""FIRE:""\x80 Enter game"))
|
textHUDdraw(M_GetText("\x82""FIRE:""\x80 Enter game"))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gametype == GT_COOP && (!stplyr->spectator || (!(maptol & TOL_NIGHTS) && G_IsSpecialStage(gamemap))) && stplyr->exiting)
|
if (gametype == GT_COOP && (!stplyr->spectator || (!(maptol & TOL_NIGHTS) && G_IsSpecialStage(gamemap))) && (stplyr->exiting || (stplyr->pflags & PF_FINISHED)))
|
||||||
{
|
{
|
||||||
UINT8 numneeded = (G_IsSpecialStage(gamemap) ? 4 : cv_playersforexit.value);
|
UINT8 numneeded = (G_IsSpecialStage(gamemap) ? 4 : cv_playersforexit.value);
|
||||||
if (numneeded)
|
if (numneeded)
|
||||||
|
@ -2121,7 +2121,7 @@ static void ST_drawTextHUD(void)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
total++;
|
total++;
|
||||||
if (players[i].exiting)
|
if (players[i].exiting || (players[i].pflags & PF_FINISHED))
|
||||||
exiting++;
|
exiting++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue