mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-23 08:39:49 -04:00
Use more TRUNCF_BINANG for f32 -> s16 casts (#1503)
* TRUNCF_BINANG * brackets * extra cast
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user