mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Additional hack for Sealed Star game over: In demo.playback, do a retry flag anyways, just to guarantee it ends
Also guarantee it uses demo.netgame status where relevant
This commit is contained in:
parent
6a07bca807
commit
d618802abc
1 changed files with 11 additions and 3 deletions
14
src/g_game.c
14
src/g_game.c
|
|
@ -3132,10 +3132,11 @@ void G_FinishExitLevel(void)
|
|||
|
||||
if (gamestate == GS_LEVEL)
|
||||
{
|
||||
const boolean worknetgame = (demo.playback ? demo.netgame : netgame);
|
||||
if (g_exit.retry)
|
||||
{
|
||||
// Restart cup here whenever we do Online GP
|
||||
if (!netgame)
|
||||
if (!worknetgame)
|
||||
{
|
||||
// We have lives, just redo this one course.
|
||||
G_SetRetryFlag();
|
||||
|
|
@ -3144,11 +3145,18 @@ void G_FinishExitLevel(void)
|
|||
}
|
||||
else if (g_exit.losing)
|
||||
{
|
||||
// We were in a Special Stage.
|
||||
// Were we in a Special Stage?
|
||||
// We can still progress to the podium when we game over here.
|
||||
const boolean special = grandprixinfo.gp == true && grandprixinfo.cup != NULL && grandprixinfo.eventmode == GPEVENT_SPECIAL;
|
||||
|
||||
if (!netgame && !special)
|
||||
if (demo.playback && !worknetgame)
|
||||
{
|
||||
// Guarantee conclusion to Sealed Star replay
|
||||
G_SetRetryFlag();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!worknetgame && !special)
|
||||
{
|
||||
// Back to the menu with you.
|
||||
G_HandleSaveLevel(true);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue