From 1d4e497954b9e3b98cccade6cebab4a2d3bf4f83 Mon Sep 17 00:00:00 2001 From: Antonio Martinez Date: Thu, 26 Jun 2025 23:10:10 -0400 Subject: [PATCH] In GP, award 20 rings for finishing while outrunning the SPB --- src/p_user.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/p_user.c b/src/p_user.c index 80169dee6..5e0635bbf 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -1264,6 +1264,13 @@ void P_DoPlayerExit(player_t *player, pflags_t flags) 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 specialout = (specialstageinfo.valid == true && losing == true);