summaryrefslogtreecommitdiff
path: root/src/recorded_battle.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-03-12 16:55:58 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2021-03-12 16:55:58 -0500
commit8d4dcb228afaf8dfc8198b1955d42d1794ac3d81 (patch)
tree978816eb19dfe2eb52f6ca48c0ef56192857de5c /src/recorded_battle.c
parente32a1571afc4a9c855c35b6ba17e84603d1b82e8 (diff)
More documentation in battle_main
Diffstat (limited to 'src/recorded_battle.c')
-rw-r--r--src/recorded_battle.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/recorded_battle.c b/src/recorded_battle.c
index 5db4f82c5..e29792766 100644
--- a/src/recorded_battle.c
+++ b/src/recorded_battle.c
@@ -84,7 +84,7 @@ EWRAM_DATA static u8 sFrontierFacility = 0;
EWRAM_DATA static u8 sFrontierBrainSymbol = 0;
EWRAM_DATA static MainCallback sCallback2_AfterRecordedBattle = NULL;
EWRAM_DATA u8 gRecordedBattleMultiplayerId = 0;
-EWRAM_DATA static u8 sUnknown_0203C7B5 = 0;
+EWRAM_DATA static u8 sFrontierPassFlag = 0;
EWRAM_DATA static u8 sBattleScene = 0;
EWRAM_DATA static u8 sTextSpeed = 0;
EWRAM_DATA static u32 sBattleFlags = 0;
@@ -687,19 +687,20 @@ u8 GetActiveBattlerLinkPlayerGender(void)
return 0;
}
-void sub_8185F84(void)
+void RecordedBattle_ClearFrontierPassFlag(void)
{
- sUnknown_0203C7B5 = 0;
+ sFrontierPassFlag = 0;
}
-void sub_8185F90(u16 arg0)
+// Set sFrontierPassFlag to received state of FLAG_SYS_FRONTIER_PASS
+void RecordedBattle_SetFrontierPassFlagFromHword(u16 arg0)
{
- sUnknown_0203C7B5 |= (arg0 & 0x8000) >> 0xF;
+ sFrontierPassFlag |= (arg0 & 0x8000) >> 15;
}
-u8 sub_8185FAC(void)
+u8 RecordedBattle_GetFrontierPassFlag(void)
{
- return sUnknown_0203C7B5;
+ return sFrontierPassFlag;
}
u8 GetBattleSceneInRecordedBattle(void)