mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Put these special cases behind RaceGametype
This commit is contained in:
parent
99ed66ac46
commit
1fc9009bd3
1 changed files with 26 additions and 23 deletions
|
|
@ -1222,6 +1222,8 @@ static void K_KartItemRoulette(player_t *player, ticcmd_t *cmd)
|
|||
return;
|
||||
}
|
||||
|
||||
if (G_RaceGametype())
|
||||
{
|
||||
// SPECIAL CASE No. 4:
|
||||
// Being in ring debt occasionally forces Super Ring on you if you mashed
|
||||
if (mashed && player->kartstuff[k_rings] < 0 && cv_superring.value)
|
||||
|
|
@ -1255,6 +1257,7 @@ static void K_KartItemRoulette(player_t *player, ticcmd_t *cmd)
|
|||
S_StartSound(NULL, (mashed ? sfx_itrolm : sfx_itrolf));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// NOW that we're done with all of those specialized cases, we can move onto the REAL item roulette tables.
|
||||
// Initializes existing spawnchance values
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue