mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-06 19:31:13 +00:00
Bots: Modify friction changes with gamespeed
This commit is contained in:
parent
fdda4df9ae
commit
7ddfddb3a8
1 changed files with 4 additions and 1 deletions
|
|
@ -10270,7 +10270,10 @@ static void K_AirFailsafe(player_t *player)
|
|||
//
|
||||
fixed_t K_PlayerBaseFriction(player_t *player, fixed_t original)
|
||||
{
|
||||
const fixed_t factor = FixedDiv(FRACUNIT - original, FRACUNIT - ORIG_FRICTION);
|
||||
const fixed_t factor = FixedMul(
|
||||
FixedDiv(FRACUNIT - original, FRACUNIT - ORIG_FRICTION),
|
||||
K_GetKartGameSpeedScalar(gamespeed)
|
||||
);
|
||||
fixed_t frict = original;
|
||||
|
||||
if (K_PodiumSequence() == true)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue