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:
Sally Coolatta 2022-12-12 19:41:33 -05:00
parent 8534703de6
commit 7713ce0ebb

View file

@ -814,7 +814,7 @@ static void K_CalculateRouletteSpeed(player_t *const player, itemroulette_t *con
{
// Don't impact as much 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);
}