summaryrefslogtreecommitdiff
path: root/src/code/z_sub_s.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_sub_s.c
parented4da0ecef698ad0112c7cdf575368ac3c61903b (diff)
Use more `TRUNCF_BINANG` for f32 -> s16 casts (#1503)
* TRUNCF_BINANG * brackets * extra cast
Diffstat (limited to 'src/code/z_sub_s.c')
-rw-r--r--src/code/z_sub_s.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/z_sub_s.c b/src/code/z_sub_s.c
index d36f65b34..767018e58 100644
--- a/src/code/z_sub_s.c
+++ b/src/code/z_sub_s.c
@@ -589,8 +589,8 @@ s32 SubS_HasReachedPoint(Actor* actor, Path* path, s32 pointIndex) {
Path* SubS_GetDayDependentPath(PlayState* play, u8 pathIndex, u8 pathIndexNone, s32* startPointIndex) {
Path* path = NULL;
s32 found = false;
- s16 time1 = TIME_TO_MINUTES_F(CURRENT_TIME);
- s16 time2 = TIME_TO_MINUTES_F(CURRENT_TIME);
+ s16 time1 = TRUNCF_BINANG(TIME_TO_MINUTES_F(CURRENT_TIME));
+ s16 time2 = TRUNCF_BINANG(TIME_TO_MINUTES_F(CURRENT_TIME));
s32 time = ((time1 % 60) + (time2 / 60) * 60) / 30;
s32 day = CURRENT_DAY;