mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-02 01:59:49 -04:00
Use more TRUNCF_BINANG for f32 -> s16 casts (#1503)
* TRUNCF_BINANG * brackets * extra cast
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ s32 Math_ScaledStepToS(s16* pValue, s16 target, s16 step) {
|
||||
step = -step;
|
||||
}
|
||||
|
||||
*pValue += (s16)(step * f0);
|
||||
*pValue += TRUNCF_BINANG(step * f0);
|
||||
|
||||
if (((s16)(*pValue - target) * step) >= 0) {
|
||||
*pValue = target;
|
||||
|
||||
Reference in New Issue
Block a user