Use CURRENT_TIME Macro (#1514)

* use CURRENT_TIME macro

* add comment

* cleanup brackets
This commit is contained in:
engineer124
2023-11-27 20:04:54 +11:00
committed by GitHub
parent 6dd1600936
commit c04aaab6a1
62 changed files with 211 additions and 239 deletions
+3 -3
View File
@@ -588,9 +588,9 @@ 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;
s32 time = (((s16)TIME_TO_MINUTES_F(gSaveContext.save.time) % 60) +
((s16)TIME_TO_MINUTES_F(gSaveContext.save.time) / 60) * 60) /
30;
s16 time1 = TIME_TO_MINUTES_F(CURRENT_TIME);
s16 time2 = TIME_TO_MINUTES_F(CURRENT_TIME);
s32 time = ((time1 % 60) + (time2 / 60) * 60) / 30;
s32 day = CURRENT_DAY;
if (pathIndex == pathIndexNone) {