Rename REGION_MAP constants to adopt MAPSEC names from Ruby
This commit is contained in:
@@ -1603,7 +1603,7 @@ void sub_81289F0(u8 taskId)
|
||||
ScriptContext1_SetupScript(gUnknown_08275D1F);
|
||||
}
|
||||
gSprites[sDecor_CameraSpriteObjectIdx1].pos1.y += 2;
|
||||
if (gMapHeader.regionMapSectionId == REGION_MAP_SECRET_BASE)
|
||||
if (gMapHeader.regionMapSectionId == MAPSEC_SECRET_BASE)
|
||||
{
|
||||
TV_PutSecretBaseVisitOnTheAir();
|
||||
}
|
||||
@@ -2222,7 +2222,7 @@ void sub_81298EC(u8 taskId)
|
||||
{
|
||||
StringExpandPlaceholders(gStringVar4, gText_DecorationReturnedToPC);
|
||||
DisplayItemMessageOnField(taskId, gStringVar4, sub_8129D64);
|
||||
if (gMapHeader.regionMapSectionId == REGION_MAP_SECRET_BASE)
|
||||
if (gMapHeader.regionMapSectionId == MAPSEC_SECRET_BASE)
|
||||
{
|
||||
TV_PutSecretBaseVisitOnTheAir();
|
||||
}
|
||||
|
||||
6
src/tv.c
6
src/tv.c
@@ -6432,10 +6432,10 @@ void DoTVShowTodaysRivalTrainer(void)
|
||||
default:
|
||||
sTVShowState = 7;
|
||||
break;
|
||||
case REGION_MAP_SECRET_BASE:
|
||||
case MAPSEC_SECRET_BASE:
|
||||
sTVShowState = 8;
|
||||
break;
|
||||
case REGION_MAP_NONE:
|
||||
case MAPSEC_NONE:
|
||||
switch (show->rivalTrainer.mapDataId)
|
||||
{
|
||||
case 0x115 ... 0x117:
|
||||
@@ -6633,7 +6633,7 @@ void DoTVShowHoennTreasureInvestigators(void)
|
||||
{
|
||||
case 0:
|
||||
StringCopy(gStringVar1, ItemId_GetItem(show->treasureInvestigators.item)->name);
|
||||
if (show->treasureInvestigators.location == REGION_MAP_NONE)
|
||||
if (show->treasureInvestigators.location == MAPSEC_NONE)
|
||||
{
|
||||
switch (show->treasureInvestigators.mapDataId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user