diff options
author | scnorton <scnorton@biociphers.org> | 2017-12-18 15:00:57 -0500 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2017-12-18 15:00:57 -0500 |
commit | 89c0d40ee6c7fa2ad9f7f44e3a51ea50264e9280 (patch) | |
tree | f5387471637b5e9e62fa5b6a0614a935b2921118 /src/engine/clock.c | |
parent | 408f3cf295e76b61f2c1a442c80d1036bbaa9d28 (diff) | |
parent | 3c5f725de49371aced1788a21f5e53df5b498b5f (diff) |
Merge branch 'master' into decompile_data
Diffstat (limited to 'src/engine/clock.c')
-rw-r--r-- | src/engine/clock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/clock.c b/src/engine/clock.c index cb8af64a8..416aaa6bb 100644 --- a/src/engine/clock.c +++ b/src/engine/clock.c @@ -20,7 +20,7 @@ static void ReturnFromStartWallClock(void); static void InitTimeBasedEvents(void) { - FlagSet(SYS_CLOCK_SET); + FlagSet(FLAG_SYS_CLOCK_SET); RtcCalcLocalTime(); gSaveBlock2.lastBerryTreeUpdate = gLocalTime; VarSet(VAR_DAYS, gLocalTime.days); @@ -28,7 +28,7 @@ static void InitTimeBasedEvents(void) void DoTimeBasedEvents(void) { - if (FlagGet(SYS_CLOCK_SET)) + if (FlagGet(FLAG_SYS_CLOCK_SET)) { RtcCalcLocalTime(); UpdatePerDay(&gLocalTime); @@ -45,7 +45,7 @@ static void UpdatePerDay(struct Time *time) if (days != time->days && days <= time->days) { newDays = time->days - days; - ClearUpperFlags(); + ClearDailyFlags(); UpdateDewfordTrendPerDay(newDays); UpdateTVShowsPerDay(newDays); UpdateWeatherPerDay(newDays); |