mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'grow-rolloff-mistake' into 'master'
Fix dodgy math in grow laser timer calculations See merge request KartKrew/Kart!2408
This commit is contained in:
commit
f8974b3633
1 changed files with 1 additions and 1 deletions
|
|
@ -571,7 +571,7 @@ boolean Obj_ShrinkLaserCollide(mobj_t *gun, mobj_t *victim)
|
|||
}
|
||||
|
||||
UINT8 oldGrow = max(victim->player->growshrinktimer, 0);
|
||||
fixed_t easePercent = min(oldGrow * 6*TICRATE / FRACUNIT, FRACUNIT);
|
||||
fixed_t easePercent = min(oldGrow * FRACUNIT / 6*TICRATE, FRACUNIT);
|
||||
victim->player->growshrinktimer += Easing_OutSine(easePercent, 6*TICRATE, 2*TICRATE);
|
||||
|
||||
S_StartSound(victim, sfx_kc5a);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue