diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2019-10-24 16:37:44 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2019-10-24 16:37:44 -0400 |
commit | c0f4afeb1711ab10f224c639600580260c4144ce (patch) | |
tree | dcb0b103d52258a27742f73ace69cb7a9b6bcb00 | |
parent | a18e9c27e1b64ddb67d25afe815163c209247d9b (diff) |
Fix multiline conditional parentheses and indentation
-rw-r--r-- | src/field_specials.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/field_specials.c b/src/field_specials.c index 1554cfd2d..867df4b94 100644 --- a/src/field_specials.c +++ b/src/field_specials.c @@ -198,8 +198,9 @@ bool8 Special_PlayerHasGrassPokemonInParty(void) for (i = 0; i < PARTY_SIZE; i++) { pokemon = &gPlayerParty[i]; - if ( GetMonData(pokemon, MON_DATA_SANITY_HAS_SPECIES) - && !GetMonData(pokemon, MON_DATA_IS_EGG)) + if (GetMonData(pokemon, MON_DATA_SANITY_HAS_SPECIES) + && !GetMonData(pokemon, MON_DATA_IS_EGG) + ) { species = GetMonData(pokemon, MON_DATA_SPECIES); if (gBaseStats[species].type1 == TYPE_GRASS || gBaseStats[species].type2 == TYPE_GRASS) @@ -1582,6 +1583,7 @@ void ChangeBoxPokemonNickname(void) u8 gender; u32 personality; + GetBoxMonData(pokemon, MON_DATA_NICKNAME, gStringVar3); GetBoxMonData(pokemon, MON_DATA_NICKNAME, gStringVar2); species = GetBoxMonData(pokemon, MON_DATA_SPECIES, NULL); @@ -2250,7 +2252,8 @@ bool8 CutMoveRuinValleyCheck(void) && gSaveBlock1Ptr->location.mapNum == MAP_NUM(SIX_ISLAND_RUIN_VALLEY) && gSaveBlock1Ptr->pos.x == 24 && gSaveBlock1Ptr->pos.y == 25 - && GetPlayerFacingDirection() == DIR_NORTH) + && GetPlayerFacingDirection() == DIR_NORTH + ) return TRUE; else return FALSE; |