From 04eefa1acceb46e9c1d4833e7cff633534ae1535 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Mon, 27 Feb 2023 19:26:18 -0500 Subject: [PATCH] Go to podium when game over on special stage --- src/g_game.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index fadc35acd..9d1183df3 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -3087,13 +3087,20 @@ void G_ExitLevel(void) if (i == MAXPLAYERS) { // GAME OVER, try again from the start! - - if (netgame) + if (grandprixinfo.gp == true + && 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 { + // Back to the menu with you. D_QuitNetGame(); CL_Reset(); D_ClearState(); @@ -3102,11 +3109,14 @@ void G_ExitLevel(void) } else { - // Go redo this course. + // We have lives, just redo this one course. G_SetRetryFlag(); } - return; + if (doretry == true) + { + return; + } } gameaction = ga_completed;