mirror of
https://github.com/zeldaret/mm.git
synced 2026-09-04 18:21:33 -04:00
Use CURRENT_TIME Macro (#1514)
* use CURRENT_TIME macro * add comment * cleanup brackets
This commit is contained in:
+3
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user