diff options
author | Cameron Hall <camthesaxman@users.noreply.github.com> | 2017-09-13 11:01:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-13 11:01:47 -0500 |
commit | c1c2015f7046676b043641c0d1f9d9e29bc73647 (patch) | |
tree | cbea3afbcdad3d6bcc178ae4abffa9bbe88549f7 /src/time_events.c | |
parent | 37cf3484223366ee381f15d9a2cfeaf3612fd228 (diff) | |
parent | 9e9c40214f7672662820636167d2cc1469ca2ba1 (diff) |
Merge pull request #430 from camthesaxman/scrcmd_renaming
(don't merge yet) rename script commands
Diffstat (limited to 'src/time_events.c')
-rw-r--r-- | src/time_events.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/time_events.c b/src/time_events.c index e1b9a2e9e..accb03db8 100644 --- a/src/time_events.c +++ b/src/time_events.c @@ -4,7 +4,7 @@ #include "field_weather.h" #include "pokemon.h" #include "rng.h" -#include "rom4.h" +#include "overworld.h" #include "rtc.h" #include "script.h" #include "task.h" @@ -81,13 +81,13 @@ void UpdateShoalTideFlag(void) 1, }; - if (is_light_level_1_2_3_5_or_6(get_map_light_from_warp0())) + if (is_map_type_1_2_3_5_or_6(get_map_type_from_warp0())) { RtcCalcLocalTime(); if (tide[gLocalTime.hours]) FlagSet(SYS_SHOAL_TIDE); else - FlagReset(SYS_SHOAL_TIDE); + FlagClear(SYS_SHOAL_TIDE); } } |