Merge branch 'cap-ring-speed-lines' into 'master'

Don't ringboost-scale speedlines past 2x (3x with tripwire leniency)

See merge request KartKrew/Kart!1366
This commit is contained in:
Oni 2023-08-01 01:06:30 +00:00
commit f93e925a4a

View file

@ -1841,7 +1841,10 @@ static void K_SpawnGenericSpeedLines(player_t *player, boolean top)
fast->angle = K_MomentumAngle(player->mo);
if (player->ringboost)
{
P_SetScale(fast, fast->scale + (fast->scale / 300 * player->ringboost));
fixed_t bunky = fast->scale;
if (player->ringboost < 300)
bunky /= (300 * player->ringboost);
P_SetScale(fast, fast->scale + bunky);
}
if (player->tripwireLeniency)
{