mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-02 05:02:55 +00:00
G_ExitLevel: Fix K_PlayerFinishGrandPrix not being called in Sealed Star
Fixes Emerald collection not being recorded
This commit is contained in:
parent
0c4ea2f51a
commit
3bd0fd8330
1 changed files with 11 additions and 8 deletions
19
src/g_game.c
19
src/g_game.c
|
|
@ -3194,6 +3194,17 @@ void G_ExitLevel(void)
|
|||
UINT8 i;
|
||||
boolean doretry = false;
|
||||
|
||||
if (grandprixinfo.gp == true)
|
||||
{
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
if (playeringame[i] && !players[i].spectator)
|
||||
{
|
||||
K_PlayerFinishGrandPrix(&players[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!G_GametypeUsesLives())
|
||||
; // never force a retry
|
||||
else if (specialstageinfo.valid == true || (gametyperules & GTR_BOSS))
|
||||
|
|
@ -3213,14 +3224,6 @@ void G_ExitLevel(void)
|
|||
}
|
||||
else if (grandprixinfo.gp == true && grandprixinfo.eventmode == GPEVENT_NONE)
|
||||
{
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
if (playeringame[i] && !players[i].spectator)
|
||||
{
|
||||
K_PlayerFinishGrandPrix(&players[i]);
|
||||
}
|
||||
}
|
||||
|
||||
doretry = (grandprixinfo.wonround != true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue