mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Go to podium when game over on special stage
This commit is contained in:
parent
9501b57296
commit
04eefa1acc
1 changed files with 15 additions and 5 deletions
20
src/g_game.c
20
src/g_game.c
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue