summaryrefslogtreecommitdiff
path: root/src/map_name_popup.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-02-13 17:52:12 -0500
committerhuderlem <huderlem@gmail.com>2020-02-17 13:09:35 -0600
commitf6275cce57125ad6c54a5edd14a03517a34a1b61 (patch)
tree53d6b7a4bffbcbf8ec3e41bee11da15be71cb509 /src/map_name_popup.c
parente7ff7fb0325e3afa4a1c9a09e1fccfb2f7f14997 (diff)
Misc constant use in TV
Diffstat (limited to 'src/map_name_popup.c')
-rw-r--r--src/map_name_popup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map_name_popup.c b/src/map_name_popup.c
index b84489a17..2010cea59 100644
--- a/src/map_name_popup.c
+++ b/src/map_name_popup.c
@@ -359,10 +359,10 @@ static void LoadMapNamePopUpWindowBg(void)
u8 popupWindowId = GetMapNamePopUpWindowId();
u16 regionMapSectionId = gMapHeader.regionMapSectionId;
- if (regionMapSectionId > MAPSEC_DYNAMIC)
+ if (regionMapSectionId >= KANTO_MAPSEC_START)
{
- if (regionMapSectionId > MAPSEC_SPECIAL_AREA)
- regionMapSectionId -= (MAPSEC_SPECIAL_AREA - MAPSEC_DYNAMIC);
+ if (regionMapSectionId > KANTO_MAPSEC_END)
+ regionMapSectionId -= KANTO_MAPSEC_COUNT;
else
regionMapSectionId = 0; // Discard kanto region sections;
}