Go to podium when game over on special stage

This commit is contained in:
Sally Coolatta 2023-02-27 19:26:18 -05:00
parent 9501b57296
commit 04eefa1acc

View file

@ -3087,13 +3087,20 @@ void G_ExitLevel(void)
if (i == MAXPLAYERS) if (i == MAXPLAYERS)
{ {
// GAME OVER, try again from the start! // GAME OVER, try again from the start!
if (grandprixinfo.gp == true
if (netgame) && grandprixinfo.eventmode == GPEVENT_SPECIAL)
{ {
; // restart cup here if we do online GP // We were in a Special Stage.
// We can still progress to the podium when we game over here.
doretry = false;
}
else if (netgame)
{
; // Restart cup here whenever we do Online GP
} }
else else
{ {
// Back to the menu with you.
D_QuitNetGame(); D_QuitNetGame();
CL_Reset(); CL_Reset();
D_ClearState(); D_ClearState();
@ -3102,11 +3109,14 @@ void G_ExitLevel(void)
} }
else else
{ {
// Go redo this course. // We have lives, just redo this one course.
G_SetRetryFlag(); G_SetRetryFlag();
} }
return; if (doretry == true)
{
return;
}
} }
gameaction = ga_completed; gameaction = ga_completed;