mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +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;
|
UINT8 i;
|
||||||
boolean doretry = false;
|
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())
|
if (!G_GametypeUsesLives())
|
||||||
; // never force a retry
|
; // never force a retry
|
||||||
else if (specialstageinfo.valid == true || (gametyperules & GTR_BOSS))
|
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)
|
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);
|
doretry = (grandprixinfo.wonround != true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue