From c0f4afeb1711ab10f224c639600580260c4144ce Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Thu, 24 Oct 2019 16:37:44 -0400 Subject: [PATCH] Fix multiline conditional parentheses and indentation --- src/field_specials.c | 9 ++++++--- 1 file 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;