mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Only charge driftsparks in TA position up to color transition
This commit is contained in:
parent
30bfde0e03
commit
6a821ba289
1 changed files with 3 additions and 2 deletions
|
|
@ -11585,9 +11585,10 @@ static void K_KartDrift(player_t *player, boolean onground)
|
||||||
K_SpawnDriftSparks(player);
|
K_SpawnDriftSparks(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player->driftcharge + driftadditive) >= dsfour && K_TimeAttackRules() && leveltime < starttime)
|
// Magic numbers ahoy! Meant to allow purple drifts to progress past color transition.
|
||||||
|
if ((player->driftcharge + driftadditive) > (dsthree+(32*3)) && K_TimeAttackRules() && leveltime < starttime)
|
||||||
{
|
{
|
||||||
driftadditive = 0;
|
driftadditive = max(0, (dsthree+(32*3)) - player->driftcharge);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player->driftcharge < dsone && player->driftcharge+driftadditive >= dsone)
|
if ((player->driftcharge < dsone && player->driftcharge+driftadditive >= dsone)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue