mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Save a math operation sometimes
This commit is contained in:
parent
0d3b6c57b0
commit
4cfa163cf5
1 changed files with 4 additions and 1 deletions
|
|
@ -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, min(fast->scale * 2, 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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue