mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-18 15:32:10 +00:00
Sparks can't be started in offroad
This commit is contained in:
parent
0ef442c004
commit
38ca2ab98a
1 changed files with 1 additions and 3 deletions
|
@ -4667,8 +4667,6 @@ static void K_KartDrift(player_t *player, boolean onground)
|
|||
player->kartstuff[k_driftend] = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Incease/decrease the drift value to continue drifting in that direction
|
||||
if (player->kartstuff[k_spinouttimer] == 0 && player->kartstuff[k_jmp] == 1 && onground && player->kartstuff[k_drift] != 0)
|
||||
{
|
||||
|
@ -4700,7 +4698,7 @@ static void K_KartDrift(player_t *player, boolean onground)
|
|||
// Disable drift-sparks until you're going fast enough
|
||||
if (player->kartstuff[k_getsparks] == 0)
|
||||
driftadditive = 0;
|
||||
if (player->speed > minspeed*2)
|
||||
if (player->speed > minspeed*2 && !player->kartstuff[k_offroad])
|
||||
player->kartstuff[k_getsparks] = 1;
|
||||
|
||||
// This spawns the drift sparks
|
||||
|
|
Loading…
Reference in a new issue