mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-18 15:32:10 +00:00
Spinout quick fix
This commit is contained in:
parent
a63b172351
commit
99e1149ec3
1 changed files with 4 additions and 8 deletions
|
@ -3885,16 +3885,12 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
if (player->mo->movefactor < 32)
|
||||
player->mo->movefactor = 32;
|
||||
}
|
||||
if (player->kartstuff[k_spinouttimer])
|
||||
{
|
||||
player->mo->friction = FRACUNIT;
|
||||
if (player->kartstuff[k_wipeoutslow])
|
||||
if (player->kartstuff[k_spinouttimer] && player->kartstuff[k_wipeoutslow])
|
||||
{
|
||||
player->mo->friction -= FixedMul(1228, player->kartstuff[k_offroad]);
|
||||
if (player->kartstuff[k_wipeoutslow] == 1)
|
||||
player->mo->friction -= 4912;
|
||||
}
|
||||
}
|
||||
|
||||
K_KartDrift(player, onground);
|
||||
|
||||
|
|
Loading…
Reference in a new issue