mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-08 19:16:01 -05:00
Apply suggestions from code review
This commit is contained in:
committed by
GitHub
parent
a9ab3286ef
commit
3b983aae14
@@ -961,9 +961,12 @@ static bool8 IsPlayerInFrontOfPC(void)
|
||||
GetXYCoordsOneStepInFrontOfPlayer(&x, &y);
|
||||
tileInFront = MapGridGetMetatileIdAt(x, y);
|
||||
|
||||
return ((tileInFront == METATILE_BrendansMaysHouse_BrendanPC_On || tileInFront == METATILE_BrendansMaysHouse_BrendanPC_Off)
|
||||
|| (tileInFront == METATILE_BrendansMaysHouse_MayPC_On || tileInFront == METATILE_BrendansMaysHouse_MayPC_Off)
|
||||
|| (tileInFront == METATILE_Building_PC_On || tileInFront == METATILE_Building_PC_Off));
|
||||
return (tileInFront == METATILE_BrendansMaysHouse_BrendanPC_On
|
||||
|| tileInFront == METATILE_BrendansMaysHouse_BrendanPC_Off
|
||||
|| tileInFront == METATILE_BrendansMaysHouse_MayPC_On
|
||||
|| tileInFront == METATILE_BrendansMaysHouse_MayPC_Off
|
||||
|| tileInFront == METATILE_Building_PC_On
|
||||
|| tileInFront == METATILE_Building_PC_Off);
|
||||
}
|
||||
|
||||
void DoPCTurnOnEffect(void)
|
||||
|
||||
Reference in New Issue
Block a user