mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Fix speed being messed up near level start
Used the wrong constant, leftover from an earlier experiment that was only partially reverted. Fixes "ghost" roulettes.
This commit is contained in:
parent
8534703de6
commit
7713ce0ebb
1 changed files with 1 additions and 1 deletions
|
|
@ -814,7 +814,7 @@ static void K_CalculateRouletteSpeed(player_t *const player, itemroulette_t *con
|
||||||
{
|
{
|
||||||
// Don't impact as much at the start.
|
// Don't impact as much at the start.
|
||||||
// This makes it so that everyone gets to enjoy the lowest speed at the start.
|
// This makes it so that everyone gets to enjoy the lowest speed at the start.
|
||||||
fixed_t lerp = FRACUNIT - FixedDiv(max(0, leveltime - starttime), 10*TICRATE);
|
fixed_t lerp = FRACUNIT - FixedDiv(max(0, leveltime - starttime), 20*TICRATE);
|
||||||
total += FixedMul(lerp, FRACUNIT - total);
|
total += FixedMul(lerp, FRACUNIT - total);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue