Rework the conditions for the previous commit

- The "never force a retry" condition is now `!G_GametypeUsesLives()`
- In GT_SPECIAL *and* GT_VERSUS, check for K_IsPlayerLosing before retry, instead of bespoke check
This commit is contained in:
toaster 2022-12-31 18:59:56 +00:00
parent 39e68d1ae3
commit a86ed5c6cb

View file

@ -2917,20 +2917,16 @@ void G_ExitLevel(void)
UINT8 i;
boolean doretry = false;
if (modeattacking != ATTACKING_NONE)
;
else if (specialstageinfo.valid == true)
{
doretry = (specialstageinfo.ufo != NULL);
}
else if (gametyperules & GTR_BOSS)
if (!G_GametypeUsesLives())
; // never force a retry
else if (specialstageinfo.valid == true || (gametyperules & GTR_BOSS)
{
doretry = true;
for (i = 0; i < MAXPLAYERS; i++)
{
if (playeringame[i] && !players[i].spectator && !players[i].bot)
{
if (players[i].bumpers > 0)
if (!K_IsPlayerLosing(&players[i]))
{
doretry = false;
break;