summaryrefslogtreecommitdiff
path: root/src/match_call.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-11-17 14:47:34 -0500
committerGitHub <noreply@github.com>2021-11-17 14:47:34 -0500
commitecb13cdbf722aacbceca1b7a2e7514e5dd1ec83a (patch)
treefd793b04244bc8a82cf79bf5be8258848b8cbc75 /src/match_call.c
parentf872ac1b80ee6a0b91ce313b429839dfbc2313cd (diff)
parentd98bd4dba70eed415d36cb67e12c79d851b1964a (diff)
Merge pull request #1550 from GriffinRichards/doc-pokenav
Document Pokénav
Diffstat (limited to 'src/match_call.c')
-rw-r--r--src/match_call.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/match_call.c b/src/match_call.c
index 9e4659ee6..85df5822d 100644
--- a/src/match_call.c
+++ b/src/match_call.c
@@ -1187,10 +1187,10 @@ static void StartMatchCall(void)
CreateTask(ExecuteMatchCall, 1);
}
-static const u16 sMatchCallWindow_Pal[] = INCBIN_U16("graphics/pokenav/match_call_window.gbapal");
-static const u8 sMatchCallWindow_Gfx[] = INCBIN_U8("graphics/pokenav/match_call_window.4bpp");
-static const u16 sPokenavIcon_Pal[] = INCBIN_U16("graphics/pokenav/icon.gbapal");
-static const u32 sPokenavIcon_Gfx[] = INCBIN_U32("graphics/pokenav/icon.4bpp.lz");
+static const u16 sMatchCallWindow_Pal[] = INCBIN_U16("graphics/pokenav/match_call/window.gbapal");
+static const u8 sMatchCallWindow_Gfx[] = INCBIN_U8("graphics/pokenav/match_call/window.4bpp");
+static const u16 sPokenavIcon_Pal[] = INCBIN_U16("graphics/pokenav/match_call/nav_icon.gbapal");
+static const u32 sPokenavIcon_Gfx[] = INCBIN_U32("graphics/pokenav/match_call/nav_icon.4bpp.lz");
static const u8 sText_PokenavCallEllipsis[] = _("………………\p");
@@ -1499,7 +1499,7 @@ bool32 SelectMatchCallMessage(int trainerId, u8 *str)
{
u32 matchCallId;
const struct MatchCallText *matchCallText;
- bool32 retVal = FALSE;
+ bool32 newRematchRequest = FALSE;
matchCallId = GetTrainerMatchCallId(trainerId);
sBattleFrontierStreakInfo.facilityId = 0;
@@ -1517,7 +1517,7 @@ bool32 SelectMatchCallMessage(int trainerId, u8 *str)
else if (ShouldTrainerRequestBattle(matchCallId))
{
matchCallText = GetDifferentRouteMatchCallText(matchCallId, str);
- retVal = TRUE;
+ newRematchRequest = TRUE;
UpdateRematchIfDefeated(matchCallId);
}
else if (Random() % 3)
@@ -1532,7 +1532,7 @@ bool32 SelectMatchCallMessage(int trainerId, u8 *str)
}
BuildMatchCallString(matchCallId, matchCallText, str);
- return retVal;
+ return newRematchRequest;
}
static int GetTrainerMatchCallId(int trainerId)