mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Spinout quick fix
This commit is contained in:
parent
6787334521
commit
580463e31b
1 changed files with 4 additions and 8 deletions
12
src/k_kart.c
12
src/k_kart.c
|
|
@ -3885,15 +3885,11 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
if (player->mo->movefactor < 32)
|
if (player->mo->movefactor < 32)
|
||||||
player->mo->movefactor = 32;
|
player->mo->movefactor = 32;
|
||||||
}
|
}
|
||||||
if (player->kartstuff[k_spinouttimer])
|
if (player->kartstuff[k_spinouttimer] && player->kartstuff[k_wipeoutslow])
|
||||||
{
|
{
|
||||||
player->mo->friction = FRACUNIT;
|
player->mo->friction -= FixedMul(1228, player->kartstuff[k_offroad]);
|
||||||
if (player->kartstuff[k_wipeoutslow])
|
if (player->kartstuff[k_wipeoutslow] == 1)
|
||||||
{
|
player->mo->friction -= 4912;
|
||||||
player->mo->friction -= FixedMul(1228, player->kartstuff[k_offroad]);
|
|
||||||
if (player->kartstuff[k_wipeoutslow] == 1)
|
|
||||||
player->mo->friction -= 4912;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
K_KartDrift(player, onground);
|
K_KartDrift(player, onground);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue