mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't allow a new driftboost of lesser magnitude to completely cancel an existing driftboost.
This commit is contained in:
parent
ae0e569cfb
commit
664544379f
1 changed files with 6 additions and 3 deletions
|
|
@ -4113,7 +4113,8 @@ static void K_KartDrift(player_t *player, boolean onground)
|
||||||
&& (player->kartstuff[k_driftcharge] >= dsone && player->kartstuff[k_driftcharge] < dstwo)
|
&& (player->kartstuff[k_driftcharge] >= dsone && player->kartstuff[k_driftcharge] < dstwo)
|
||||||
&& onground)
|
&& onground)
|
||||||
{
|
{
|
||||||
player->kartstuff[k_driftboost] = 20;
|
if (player->kartstuff[k_driftboost] < 20)
|
||||||
|
player->kartstuff[k_driftboost] = 20;
|
||||||
S_StartSound(player->mo, sfx_s23c);
|
S_StartSound(player->mo, sfx_s23c);
|
||||||
//K_SpawnDashDustRelease(player);
|
//K_SpawnDashDustRelease(player);
|
||||||
player->kartstuff[k_driftcharge] = 0;
|
player->kartstuff[k_driftcharge] = 0;
|
||||||
|
|
@ -4123,7 +4124,8 @@ static void K_KartDrift(player_t *player, boolean onground)
|
||||||
&& player->kartstuff[k_driftcharge] < dsthree
|
&& player->kartstuff[k_driftcharge] < dsthree
|
||||||
&& onground)
|
&& onground)
|
||||||
{
|
{
|
||||||
player->kartstuff[k_driftboost] = 50;
|
if (player->kartstuff[k_driftboost] < 50)
|
||||||
|
player->kartstuff[k_driftboost] = 50;
|
||||||
S_StartSound(player->mo, sfx_s23c);
|
S_StartSound(player->mo, sfx_s23c);
|
||||||
//K_SpawnDashDustRelease(player);
|
//K_SpawnDashDustRelease(player);
|
||||||
player->kartstuff[k_driftcharge] = 0;
|
player->kartstuff[k_driftcharge] = 0;
|
||||||
|
|
@ -4133,7 +4135,8 @@ static void K_KartDrift(player_t *player, boolean onground)
|
||||||
&& player->kartstuff[k_driftcharge] >= dsthree
|
&& player->kartstuff[k_driftcharge] >= dsthree
|
||||||
&& onground)
|
&& onground)
|
||||||
{
|
{
|
||||||
player->kartstuff[k_driftboost] = 125;
|
if (player->kartstuff[k_driftboost] < 125)
|
||||||
|
player->kartstuff[k_driftboost] = 125;
|
||||||
S_StartSound(player->mo, sfx_s23c);
|
S_StartSound(player->mo, sfx_s23c);
|
||||||
//K_SpawnDashDustRelease(player);
|
//K_SpawnDashDustRelease(player);
|
||||||
player->kartstuff[k_driftcharge] = 0;
|
player->kartstuff[k_driftcharge] = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue