mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
P_DoQuakeOffset: Prevent two calls to FixedDiv
This commit is contained in:
parent
91955b1383
commit
15a87a8a77
1 changed files with 2 additions and 1 deletions
|
|
@ -9428,7 +9428,8 @@ void P_DoQuakeOffset(UINT8 view, mappoint_t *viewPos, mappoint_t *offset)
|
|||
) - distBuffer;
|
||||
|
||||
|
||||
const fixed_t distEase = min(FixedDiv(max(epidist, 0), quake->radius), FRACUNIT);
|
||||
fixed_t distEase = FixedDiv(max(epidist, 0), quake->radius);
|
||||
distEase = min(distEase, FRACUNIT);
|
||||
ir = Easing_InCubic(distEase, ir, 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue