summaryrefslogtreecommitdiff
path: root/src/match_call.c
diff options
context:
space:
mode:
authorGriffinR <griffin.richards@comcast.net>2019-12-15 11:47:27 -0500
committerGitHub <noreply@github.com>2019-12-15 11:47:27 -0500
commitdb8a5c6c2be2ceedadf836a8e61c71eb0ff6407b (patch)
tree8b0323bd93c5600c8391d73232242b75135f0401 /src/match_call.c
parent82f55f238125ff42845881189eb9237692c48ba4 (diff)
parentfee36224eda1acc4329646caf0e65a891928afc0 (diff)
Merge branch 'master' into fix-eventobj
Diffstat (limited to 'src/match_call.c')
-rw-r--r--src/match_call.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/match_call.c b/src/match_call.c
index fec01c801..0647e96dc 100644
--- a/src/match_call.c
+++ b/src/match_call.c
@@ -1060,7 +1060,7 @@ static bool32 SelectMatchCallTrainer(void)
static u32 GetNumRegisteredNPCs(void)
{
u32 i, count;
- for (i = 0, count = 0; i < 64; i++)
+ for (i = 0, count = 0; i < REMATCH_SPECIAL_TRAINER_START; i++)
{
if (FlagGet(FLAG_MATCH_CALL_REGISTERED + i))
count++;
@@ -1072,7 +1072,7 @@ static u32 GetNumRegisteredNPCs(void)
static u32 GetActiveMatchCallTrainerId(u32 activeMatchCallId)
{
u32 i;
- for (i = 0; i < 64; i++)
+ for (i = 0; i < REMATCH_SPECIAL_TRAINER_START; i++)
{
if (FlagGet(FLAG_MATCH_CALL_REGISTERED + i))
{
@@ -1384,7 +1384,7 @@ static u16 GetRematchTrainerLocation(int matchCallId)
static u32 GetNumRematchTrainersFought(void)
{
u32 i, count;
- for (i = 0, count = 0; i < 64; i++)
+ for (i = 0, count = 0; i < REMATCH_SPECIAL_TRAINER_START; i++)
{
if (HasTrainerBeenFought(gRematchTable[i].trainerIds[0]))
count++;
@@ -1961,7 +1961,7 @@ static const u8 *const sBirchDexRatingTexts[] =
gBirchDexRatingText_DexCompleted,
};
-void sub_8197080(u8 *destStr)
+void BufferPokedexRatingForMatchCall(u8 *destStr)
{
int numSeen, numCaught;
u8 *str;