mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
In GP, award 20 rings for finishing while outrunning the SPB
This commit is contained in:
parent
82ea18865c
commit
1d4e497954
1 changed files with 7 additions and 0 deletions
|
|
@ -1264,6 +1264,13 @@ void P_DoPlayerExit(player_t *player, pflags_t flags)
|
||||||
K_UpdateAllPlayerPositions();
|
K_UpdateAllPlayerPositions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(gametyperules & GTR_SPHERES) && (player->pflags & PF_RINGLOCK) && grandprixinfo.gp)
|
||||||
|
{
|
||||||
|
if (P_IsDisplayPlayer(player))
|
||||||
|
S_StartSound(NULL, sfx_s3kb0);
|
||||||
|
player->rings = max(20, player->rings + 20);
|
||||||
|
}
|
||||||
|
|
||||||
const boolean losing = K_IsPlayerLosing(player); // HEY!!!! Set it AFTER K_UpdateAllPlayerPositions!!!!
|
const boolean losing = K_IsPlayerLosing(player); // HEY!!!! Set it AFTER K_UpdateAllPlayerPositions!!!!
|
||||||
const boolean specialout = (specialstageinfo.valid == true && losing == true);
|
const boolean specialout = (specialstageinfo.valid == true && losing == true);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue