mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 15:22:20 +00:00
Merge branch 'jug_nobumpcode' into 'next'
Fix bumpcode, fix magnet landing (better fix) See merge request KartKrew/Kart-Public!281
This commit is contained in:
commit
d49bd1474a
1 changed files with 5 additions and 3 deletions
|
@ -5947,7 +5947,9 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (onground)
|
// JugadorXEI: Do *not* calculate friction when a player is pogo'd
|
||||||
|
// because they'll be in the air and friction will not reset!
|
||||||
|
if (onground && !player->kartstuff[k_pogospring])
|
||||||
{
|
{
|
||||||
// Friction
|
// Friction
|
||||||
if (!player->kartstuff[k_offroad])
|
if (!player->kartstuff[k_offroad])
|
||||||
|
@ -5981,11 +5983,11 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wipeout slowdown
|
// Wipeout slowdown
|
||||||
if (player->kartstuff[k_spinouttimer] && player->kartstuff[k_wipeoutslow])
|
if (player->speed > 0 && player->kartstuff[k_spinouttimer] && player->kartstuff[k_wipeoutslow])
|
||||||
{
|
{
|
||||||
if (player->kartstuff[k_offroad])
|
if (player->kartstuff[k_offroad])
|
||||||
player->mo->friction -= 4912;
|
player->mo->friction -= 4912;
|
||||||
if (player->kartstuff[k_wipeoutslow] == 1 && player->kartstuff[k_pogospring] == 0)
|
if (player->kartstuff[k_wipeoutslow] == 1)
|
||||||
player->mo->friction -= 9824;
|
player->mo->friction -= 9824;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue