diff options
Diffstat (limited to 'src/code/z_sub_s.c')
| -rw-r--r-- | src/code/z_sub_s.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/z_sub_s.c b/src/code/z_sub_s.c index f5a233ede..9e19c1dad 100644 --- a/src/code/z_sub_s.c +++ b/src/code/z_sub_s.c @@ -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) { |
