mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-16 01:31:26 +00:00
Merge branch 'sonicitems' into sal-misc
This commit is contained in:
commit
9096da926b
1 changed files with 4 additions and 4 deletions
|
@ -3719,9 +3719,9 @@ static void K_KartDrift(player_t *player, boolean onground)
|
|||
player->kartstuff[k_drift] = 5;
|
||||
|
||||
if (player->cmd.driftturn > 0) // Inward
|
||||
driftadditive += (player->cmd.driftturn/800)/8;
|
||||
driftadditive += abs(player->cmd.driftturn)/100;
|
||||
if (player->cmd.driftturn < 0) // Outward
|
||||
driftadditive -= (player->cmd.driftturn/800)/8;
|
||||
driftadditive -= abs(player->cmd.driftturn)/75;
|
||||
}
|
||||
else if (player->kartstuff[k_drift] <= -1) // Drifting to the right
|
||||
{
|
||||
|
@ -3730,9 +3730,9 @@ static void K_KartDrift(player_t *player, boolean onground)
|
|||
player->kartstuff[k_drift] = -5;
|
||||
|
||||
if (player->cmd.driftturn < 0) // Inward
|
||||
driftadditive += (player->cmd.driftturn/800)/4;
|
||||
driftadditive += abs(player->cmd.driftturn)/100;
|
||||
if (player->cmd.driftturn > 0) // Outward
|
||||
driftadditive -= (player->cmd.driftturn/800)/4;
|
||||
driftadditive -= abs(player->cmd.driftturn)/75;
|
||||
}
|
||||
|
||||
// This spawns the drift sparks
|
||||
|
|
Loading…
Reference in a new issue