mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
Guarantee UCRP_PODIUMxx events only occour ig grandprixinfo.gp is true
Currently podium is GP only, but that won't be forever
This commit is contained in:
parent
6dfef24534
commit
813ad52b15
1 changed files with 3 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue