summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-09 11:21:16 -0400
committerPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-09 11:21:16 -0400
commitaa45c05a3ea052c76c3837dd5e9c89b958bd02f9 (patch)
tree0ff2b54fb007e59a6c2e2c7a04ada01cbedf62ef /src
parenta3a8c23e00d410f40dc70a35d9eed24b39102e40 (diff)
Match Battle Tower
Diffstat (limited to 'src')
-rw-r--r--src/battle_tower.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/battle_tower.c b/src/battle_tower.c
index 0333c4397..e0ff3fe26 100644
--- a/src/battle_tower.c
+++ b/src/battle_tower.c
@@ -1447,7 +1447,7 @@ u8 GetFrontierOpponentClass(u16 trainerId)
}
else if (trainerId == TRAINER_FRONTIER_BRAIN)
{
- trainerClass = GetFrontierBrainTrainerClass();
+ return GetFrontierBrainTrainerClass(); // This sticks out like a sore thumb, but this is the only other way that matches. Maybe it SHOULD be assigned to ret, or all early returns. I don't know.
}
else if (trainerId == TRAINER_STEVEN_PARTNER)
{
@@ -1466,9 +1466,6 @@ u8 GetFrontierOpponentClass(u16 trainerId)
else
{
trainerClass = gFacilityClassToTrainerClass[gSaveBlock2Ptr->frontier.towerRecords[trainerId - TRAINER_RECORD_MIXING_FRIEND].facilityClass];
- #ifndef NONMATCHING
- asm("");
- #endif
}
}
else
@@ -1480,9 +1477,6 @@ u8 GetFrontierOpponentClass(u16 trainerId)
else
{
trainerClass = gFacilityClassToTrainerClass[gApprentices[gSaveBlock2Ptr->apprentices[trainerId - TRAINER_RECORD_MIXING_APPRENTICE].id].facilityClass];
- #ifndef NONMATCHING
- asm("");
- #endif
}
}