summaryrefslogtreecommitdiff
path: root/src/battle_controller_link_opponent.c
diff options
context:
space:
mode:
authorDiegoisawesome <Diegoisawesome@users.noreply.github.com>2019-02-02 16:00:56 -0600
committerGitHub <noreply@github.com>2019-02-02 16:00:56 -0600
commitff48e5ada02f5effa10e2bfd9b1e2dbaef37e5d3 (patch)
treec0788afbbaf711bfdc90e5a896254cae4c77a063 /src/battle_controller_link_opponent.c
parent59807c0f2cde5fb3068157a4c2ca3c31510d39fd (diff)
parentd64a905d65d638b7c76e86a2326f5077c3352b11 (diff)
Merge pull request #541 from Diegoisawesome/master
Misc documentation
Diffstat (limited to 'src/battle_controller_link_opponent.c')
-rw-r--r--src/battle_controller_link_opponent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/battle_controller_link_opponent.c b/src/battle_controller_link_opponent.c
index a7b08a974..d69e05b9e 100644
--- a/src/battle_controller_link_opponent.c
+++ b/src/battle_controller_link_opponent.c
@@ -1278,7 +1278,7 @@ static void LinkOpponentHandleDrawTrainerPic(void)
else if ((gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].version & 0xFF) == VERSION_FIRE_RED
|| (gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].version & 0xFF) == VERSION_LEAF_GREEN)
{
- if (gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].gender != 0)
+ if (gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].gender != MALE)
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_LEAF];
else
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_RED];
@@ -1286,7 +1286,7 @@ static void LinkOpponentHandleDrawTrainerPic(void)
else if ((gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].version & 0xFF) == VERSION_RUBY
|| (gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].version & 0xFF) == VERSION_SAPPHIRE)
{
- if (gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].gender != 0)
+ if (gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].gender != MALE)
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_RS_MAY];
else
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_RS_BRENDAN];