mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
m_easing.c: Actually use the value of the clamp
WERROR just let me know about these
This commit is contained in:
parent
54726eb665
commit
6a8c1e250d
1 changed files with 2 additions and 2 deletions
|
|
@ -459,7 +459,7 @@ fixed_t FixedRescale(fixed_t value, fixed_t inmin, fixed_t inmax, easingfunc_t e
|
||||||
return outmin;
|
return outmin;
|
||||||
|
|
||||||
// Clamp the input value to the range
|
// Clamp the input value to the range
|
||||||
max(inmin, min(inmax, value));
|
value = max(inmin, min(inmax, value));
|
||||||
|
|
||||||
// Normalize the value to [0, FRACUNIT] range
|
// Normalize the value to [0, FRACUNIT] range
|
||||||
fixed_t t = FixedDiv(value - inmin, inmax - inmin);
|
fixed_t t = FixedDiv(value - inmin, inmax - inmin);
|
||||||
|
|
@ -499,7 +499,7 @@ INT16 IntRescale(INT16 value, INT16 inmin, INT16 inmax, easingfunc_t easing_func
|
||||||
return outmin;
|
return outmin;
|
||||||
|
|
||||||
// Clamp the input value to the range
|
// Clamp the input value to the range
|
||||||
max(inmin, min(inmax, value));
|
value = max(inmin, min(inmax, value));
|
||||||
|
|
||||||
// Conversion shit
|
// Conversion shit
|
||||||
value = value<<FRACBITS;
|
value = value<<FRACBITS;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue