Fix some indentation issues
This commit is contained in:
parent
d20ee1ab13
commit
0574d00fa3
2 changed files with 13 additions and 13 deletions
|
@ -304,17 +304,17 @@ static void FindMapsWithMon(u16 species)
|
|||
|
||||
// Add roamers to the area map
|
||||
for (i = 0; i < ROAMER_COUNT; i++)
|
||||
{
|
||||
roamer = &gSaveBlock1Ptr->roamer[i];
|
||||
if (species == roamer->species && roamer->active)
|
||||
{
|
||||
roamer = &gSaveBlock1Ptr->roamer[i];
|
||||
if (species == roamer->species && roamer->active)
|
||||
{
|
||||
// This is a roamer's species, show where this roamer is currently
|
||||
struct OverworldArea *roamerLocation = &sPokedexAreaScreen->overworldAreasWithMons[sPokedexAreaScreen->numOverworldAreas];
|
||||
GetRoamerLocation(i, &roamerLocation->mapGroup, &roamerLocation->mapNum);
|
||||
roamerLocation->regionMapSectionId = Overworld_GetMapHeaderByGroupAndId(roamerLocation->mapGroup, roamerLocation->mapNum)->regionMapSectionId;
|
||||
sPokedexAreaScreen->numOverworldAreas++;
|
||||
}
|
||||
// This is a roamer's species, show where this roamer is currently
|
||||
struct OverworldArea *roamerLocation = &sPokedexAreaScreen->overworldAreasWithMons[sPokedexAreaScreen->numOverworldAreas];
|
||||
GetRoamerLocation(i, &roamerLocation->mapGroup, &roamerLocation->mapNum);
|
||||
roamerLocation->regionMapSectionId = Overworld_GetMapHeaderByGroupAndId(roamerLocation->mapGroup, roamerLocation->mapNum)->regionMapSectionId;
|
||||
sPokedexAreaScreen->numOverworldAreas++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void SetAreaHasMon(u16 mapGroup, u16 mapNum)
|
||||
|
|
|
@ -85,7 +85,7 @@ void MoveAllRoamersToOtherLocationSets(void)
|
|||
{
|
||||
u32 i;
|
||||
|
||||
for (i = 0; i < ROAMER_COUNT; i++)
|
||||
for (i = 0; i < ROAMER_COUNT; i++)
|
||||
RoamerMoveToOtherLocationSet(i);
|
||||
}
|
||||
|
||||
|
@ -218,9 +218,9 @@ void RoamerMove(u8 roamerIndex)
|
|||
{
|
||||
mapNum = sRoamerLocations[locSet][(Random() % (NUM_LOCATIONS_PER_SET - 1)) + 1];
|
||||
} while ((sLocationHistory[roamerIndex][2][MAP_GRP] == ROAMER_MAP_GROUP
|
||||
&& sLocationHistory[roamerIndex][2][MAP_NUM] == mapNum)
|
||||
|| mapNum == MAP_NUM(UNDEFINED));
|
||||
sRoamerLocation[roamerIndex][MAP_NUM] = mapNum;
|
||||
&& sLocationHistory[roamerIndex][2][MAP_NUM] == mapNum)
|
||||
|| mapNum == MAP_NUM(UNDEFINED));
|
||||
sRoamerLocation[roamerIndex][MAP_NUM] = mapNum;
|
||||
return;
|
||||
}
|
||||
locSet++;
|
||||
|
|
Loading…
Reference in a new issue