summaryrefslogtreecommitdiff
path: root/src/code/z_parameter.c
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2023-12-13 15:16:24 +1100
committerGitHub <noreply@github.com>2023-12-13 15:16:24 +1100
commit5607eec18bae68e4cd38ef6d1fa69d7f1d84bfc8 (patch)
treebb13ad49718f8883bc65d7bd0a9db4d791800cf2 /src/code/z_parameter.c
parented4da0ecef698ad0112c7cdf575368ac3c61903b (diff)
Use more `TRUNCF_BINANG` for f32 -> s16 casts (#1503)
* TRUNCF_BINANG * brackets * extra cast
Diffstat (limited to 'src/code/z_parameter.c')
-rw-r--r--src/code/z_parameter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/z_parameter.c b/src/code/z_parameter.c
index c1098f23a..f2b4330fc 100644
--- a/src/code/z_parameter.c
+++ b/src/code/z_parameter.c
@@ -4601,7 +4601,7 @@ void Interface_DrawClock(PlayState* play) {
}
timeInSeconds = TIME_TO_SECONDS_F(CURRENT_TIME);
- timeInSeconds -= ((s16)(timeInSeconds / 3600.0f)) * 3600.0f;
+ timeInSeconds -= TRUNCF_BINANG(timeInSeconds / 3600.0f) * 3600.0f;
Gfx_SetupDL42_Overlay(play->state.gfxCtx);