Change map header flags to use a bitfield
This commit is contained in:
@@ -1007,7 +1007,7 @@ static void InitMapBasedOnPlayerLocation(void)
|
||||
break;
|
||||
case MAP_TYPE_UNDERGROUND:
|
||||
case MAP_TYPE_UNKNOWN:
|
||||
if (gMapHeader.flags & MAP_ALLOW_ESCAPING)
|
||||
if (gMapHeader.allowEscaping)
|
||||
{
|
||||
mapHeader = Overworld_GetMapHeaderByGroupAndId(gSaveBlock1Ptr->escapeWarp.mapGroup, gSaveBlock1Ptr->escapeWarp.mapNum);
|
||||
gRegionMap->mapSecId = mapHeader->regionMapSectionId;
|
||||
|
||||
Reference in New Issue
Block a user