use region map constants

This commit is contained in:
DizzyEggg 2018-06-30 14:22:09 +02:00
parent 0fe3e612eb
commit 5434db2fc6

View File

@ -9,6 +9,7 @@
#include "random.h" #include "random.h"
#include "item.h" #include "item.h"
#include "constants/items.h" #include "constants/items.h"
#include "constants/region_map_sections.h"
// this file's functions // this file's functions
void sub_81B99D4(void); void sub_81B99D4(void);
@ -262,6 +263,6 @@ void sub_81B9E88(void)
bool8 sub_81B9E94(void) bool8 sub_81B9E94(void)
{ {
return (gMapHeader.regionMapSectionId == 8 return (gMapHeader.regionMapSectionId == MAPSEC_SLATEPORT_CITY
&& ((gMapHeader.mapDataId == 385) | (gMapHeader.mapDataId == 386))); && ((gMapHeader.mapDataId == 385) | (gMapHeader.mapDataId == 386)));
} }