mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Leave bot friction alone on dash pads
Should fix #752, otherwise probably isn't harmful though.
This commit is contained in:
parent
47fdab3bdd
commit
54e62bbd8f
1 changed files with 18 additions and 15 deletions
|
|
@ -11191,6 +11191,8 @@ fixed_t K_PlayerBaseFriction(player_t *player, fixed_t original)
|
|||
);
|
||||
fixed_t frict = original;
|
||||
|
||||
if (player->dashpadcooldown == 0) // attempt to fix Hot Shelter
|
||||
{
|
||||
if (K_PodiumSequence() == true)
|
||||
{
|
||||
frict -= FixedMul(FRACUNIT >> 4, factor);
|
||||
|
|
@ -11210,6 +11212,7 @@ fixed_t K_PlayerBaseFriction(player_t *player, fixed_t original)
|
|||
frict -= FixedMul(extraFriction, mul);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (frict > FRACUNIT) { frict = FRACUNIT; }
|
||||
if (frict < 0) { frict = 0; }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue