summaryrefslogtreecommitdiff
path: root/src/pokenav_unk_2.c
blob: 3aec4685e20451e3e2f3325429db4dd22c0ba729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "global.h"
#include "gym_leader_rematch.h"
#include "pokenav.h"

bool32 sub_81C98D4(void)
{
    s32 i;

    for (i = 0; i < REMATCH_TABLE_ENTRIES; i++)
    {
        if (sub_81CB0C8(i) == gMapHeader.regionMapSectionId
         && sub_81CAE08(i)
         && gSaveBlock1Ptr->trainerRematches[i])
            return TRUE;
    }

    return FALSE;
}