From 813ad52b157fd7da0923487f66613f9f6a711fe3 Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 18 Oct 2023 00:42:02 +0100 Subject: [PATCH] Guarantee UCRP_PODIUMxx events only occour ig grandprixinfo.gp is true Currently podium is GP only, but that won't be forever --- src/m_cond.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/m_cond.c b/src/m_cond.c index ca73cefc0..08cb01813 100644 --- a/src/m_cond.c +++ b/src/m_cond.c @@ -1468,7 +1468,7 @@ boolean M_CheckCondition(condition_t *cn, player_t *player) return (grandprixinfo.gamespeed >= cn->requirement); case UCRP_PODIUMCUP: - if (K_PodiumRanking() == false) + if (grandprixinfo.gp == false || K_PodiumRanking() == false) return false; if (grandprixinfo.cup == NULL || grandprixinfo.cup->id != cn->requirement) @@ -1481,7 +1481,8 @@ boolean M_CheckCondition(condition_t *cn, player_t *player) return true; case UCRP_PODIUMEMERALD: case UCRP_PODIUMPRIZE: - return (K_PodiumRanking() == true + return (grandprixinfo.gp == true + && K_PodiumRanking() == true && grandprixinfo.rank.specialWon == true); case UCRP_FINISHCOOL: