Fix trainer match call flags
This commit is contained in:
@@ -1615,7 +1615,7 @@ static bool32 UpdateRandomTrainerRematches(const struct RematchTrainer *table, u
|
||||
// Trainer already wants a rematch. Don't bother updating it.
|
||||
ret = TRUE;
|
||||
}
|
||||
else if (FlagGet(FLAG_MATCH_CALL_REGISTERED + i)
|
||||
else if (FlagGet(TRAINER_REGISTERED_FLAGS_START + i)
|
||||
&& (Random() % 100) <= 30) // 31% chance of getting a rematch.
|
||||
{
|
||||
SetRematchIdForTrainer(table, i);
|
||||
@@ -1744,7 +1744,7 @@ static u32 GetTrainerMatchCallFlag(u32 trainerId)
|
||||
for (i = 0; i < REMATCH_TABLE_ENTRIES; i++)
|
||||
{
|
||||
if (gRematchTable[i].trainerIds[0] == trainerId)
|
||||
return FLAG_MATCH_CALL_REGISTERED + i;
|
||||
return TRAINER_REGISTERED_FLAGS_START + i;
|
||||
}
|
||||
|
||||
return 0xFFFF;
|
||||
|
||||
Reference in New Issue
Block a user