Fix missing FREE_MATCH_CALL (#8171)
Co-authored-by: Zimmermann Gyula <graiondilach@hotmail.com>
This commit is contained in:
parent
3e583f8add
commit
8eea132406
@ -1128,8 +1128,12 @@ bool32 GetTrainerFlagFromScriptPointer(const u8 *data)
|
||||
|
||||
bool32 GetRematchFromScriptPointer(const u8 *data)
|
||||
{
|
||||
#if FREE_MATCH_CALL
|
||||
return FALSE;
|
||||
#else
|
||||
TrainerBattleParameter *temp = (TrainerBattleParameter*)(data + OPCODE_OFFSET);
|
||||
return ShouldTryRematchBattleForTrainerId(temp->params.opponentA);
|
||||
#endif
|
||||
}
|
||||
|
||||
#undef OPCODE_OFFSET
|
||||
@ -1793,11 +1797,13 @@ static bool8 WasSecondRematchWon(const struct RematchTrainer *table, u16 firstBa
|
||||
return FALSE;
|
||||
if (!HasTrainerBeenFought(table[tableId].trainerIds[1]))
|
||||
return FALSE;
|
||||
#if FREE_MATCH_CALL == FALSE
|
||||
if (I_VS_SEEKER_CHARGING)
|
||||
{
|
||||
if (gSaveBlock1Ptr->trainerRematches[tableId] == 0)
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user