mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Make slope speed scale more significant
Pull that prediction BACK when you're going up slopes!
This commit is contained in:
parent
0e95110136
commit
fae9939a25
1 changed files with 2 additions and 2 deletions
|
|
@ -347,8 +347,8 @@ static fixed_t K_BotSpeedScaled(player_t *player, fixed_t speed)
|
||||||
// Going downhill: FRACUNIT*2
|
// Going downhill: FRACUNIT*2
|
||||||
slopeMul = FRACUNIT + FINECOSINE(angle >> ANGLETOFINESHIFT);
|
slopeMul = FRACUNIT + FINECOSINE(angle >> ANGLETOFINESHIFT);
|
||||||
|
|
||||||
// Range: 0.9 to 1.1
|
// Range: 0.5 to 1.5
|
||||||
result = FixedMul(result, (FRACUNIT*9/10) + (slopeMul/10));
|
result = FixedMul(result, (FRACUNIT>>1) + (slopeMul >> 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue