Don't treat players with 0 lives that are exiting (definitely just completed a race) as irrelevant in P_CheckRacers counts

Fixes special stages not booting you back to the title screen after running out of lives on them
This commit is contained in:
toaster 2023-01-02 20:20:47 +00:00
parent 26f3490ba8
commit e73e0bd835

View file

@ -861,7 +861,7 @@ boolean P_CheckRacers(void)
// Check if all the players in the race have finished. If so, end the level. // Check if all the players in the race have finished. If so, end the level.
for (i = 0; i < MAXPLAYERS; i++) for (i = 0; i < MAXPLAYERS; i++)
{ {
if (!playeringame[i] || players[i].spectator || players[i].lives <= 0) if (!playeringame[i] || players[i].spectator || (players[i].lives <= 0 && !players[i].exiting))
{ {
// Y'all aren't even playing // Y'all aren't even playing
continue; continue;