Sync map header property names with pokefirered
This commit is contained in:
@@ -1056,7 +1056,7 @@ void Bike_HandleBumpySlopeJump(void)
|
||||
|
||||
bool32 IsRunningDisallowed(u8 metatile)
|
||||
{
|
||||
if (!(gMapHeader.flags & MAP_ALLOW_RUN) || IsRunningDisallowedByMetatile(metatile) == TRUE)
|
||||
if (!(gMapHeader.flags & MAP_ALLOW_RUNNING) || IsRunningDisallowedByMetatile(metatile) == TRUE)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
|
||||
@@ -16,7 +16,7 @@ static void sub_8135780(void);
|
||||
// text
|
||||
bool8 SetUpFieldMove_Dig(void)
|
||||
{
|
||||
if (CanUseEscapeRopeOnCurrMap() == TRUE)
|
||||
if (CanUseDigOrEscapeRopeOnCurMap() == TRUE)
|
||||
{
|
||||
gFieldCallback2 = FieldCallback_PrepareFadeInFromMenu;
|
||||
gPostMenuFieldCallback = hm2_dig;
|
||||
|
||||
@@ -911,9 +911,9 @@ static void ItemUseOnFieldCB_EscapeRope(u8 taskId)
|
||||
DisplayItemMessageOnField(taskId, gStringVar4, Task_UseDigEscapeRopeOnField);
|
||||
}
|
||||
|
||||
bool8 CanUseEscapeRopeOnCurrMap(void)
|
||||
bool8 CanUseDigOrEscapeRopeOnCurMap(void)
|
||||
{
|
||||
if (gMapHeader.flags & MAP_ALLOW_ESCAPE_ROPE)
|
||||
if (gMapHeader.flags & MAP_ALLOW_ESCAPING)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
@@ -921,7 +921,7 @@ bool8 CanUseEscapeRopeOnCurrMap(void)
|
||||
|
||||
void ItemUseOutOfBattle_EscapeRope(u8 taskId)
|
||||
{
|
||||
if (CanUseEscapeRopeOnCurrMap() == TRUE)
|
||||
if (CanUseDigOrEscapeRopeOnCurMap() == TRUE)
|
||||
{
|
||||
sItemUseOnFieldCB = ItemUseOnFieldCB_EscapeRope;
|
||||
SetUpItemUseOnFieldCallback(taskId);
|
||||
|
||||
@@ -978,7 +978,7 @@ static u16 GetCenterScreenMetatileBehavior(void)
|
||||
|
||||
bool32 Overworld_IsBikingAllowed(void)
|
||||
{
|
||||
if (!(gMapHeader.flags & MAP_ALLOW_BIKE))
|
||||
if (!(gMapHeader.flags & MAP_ALLOW_CYCLING))
|
||||
return FALSE;
|
||||
else
|
||||
return TRUE;
|
||||
|
||||
@@ -1004,7 +1004,7 @@ static void InitMapBasedOnPlayerLocation(void)
|
||||
break;
|
||||
case MAP_TYPE_UNDERGROUND:
|
||||
case MAP_TYPE_UNUSED_2:
|
||||
if (gMapHeader.flags & MAP_ALLOW_ESCAPE_ROPE)
|
||||
if (gMapHeader.flags & MAP_ALLOW_ESCAPING)
|
||||
{
|
||||
mapHeader = Overworld_GetMapHeaderByGroupAndId(gSaveBlock1Ptr->escapeWarp.mapGroup, gSaveBlock1Ptr->escapeWarp.mapNum);
|
||||
gRegionMap->mapSecId = mapHeader->regionMapSectionId;
|
||||
|
||||
Reference in New Issue
Block a user