Misc constant use in TV

This commit is contained in:
GriffinR
2020-02-13 17:52:12 -05:00
committed by huderlem
parent e7ff7fb032
commit f6275cce57
3 changed files with 86 additions and 84 deletions
+3 -3
View File
@@ -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;
}