diff options
Diffstat (limited to 'src/code/z_lib.c')
| -rw-r--r-- | src/code/z_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/z_lib.c b/src/code/z_lib.c index 0d4d00626..00bb37bc8 100644 --- a/src/code/z_lib.c +++ b/src/code/z_lib.c @@ -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; |
