Game: FireRed BPRE
List of variables and flags cleared when flying to another map
The routine at 08054CA0 is responsible for clearing some flags and vars, like the safari, bike, surf etc.
08054CA0 List of things cleared when player flies to another map! 08054CA0 08054CA0 @ =============== S U B R O U T I N E ======================================= 08054CA0 08054CA0 08054CA0 sub_08054CA0: @ CODE XREF: sub_08084310+4C.p 08054CA0 PUSH {LR} 08054CA2 BL sub_080559E4 08054CA6 MOVS R0, 0x830 @ // 08054CAA BL flag_clear @ // 08054CAE LDR R0, =0x405E @ //Bike stuff 08054CB0 MOVS R1, #0 @ // 08054CB2 BL var_set @ // 08054CB6 LDR R0, =0x802 08054CB8 BL flag_clear 08054CBC MOVS R0, 0x800 @ Safari Flag 08054CC0 BL flag_clear 08054CC4 LDR R0, =0x406E 08054CC6 MOVS R1, #0 08054CC8 BL var_set 08054CCC LDR R0, =0x805 @ Strenght Flag 08054CCE BL flag_clear 08054CD2 LDR R0, =0x806 08054CD4 BL flag_clear 08054CD8 LDR R0, =0x808 08054CDA BL flag_clear 08054CDE LDR R0, =0x404D 08054CE0 MOVS R1, #0 08054CE2 BL var_set 08054CE6 POP {R0} 08054CE8 BX R0 08054CE8 @ End of function sub_08054CA0 08054CE8 08054CE8 @ ---------------------------------------------------------------------------
As you can see, it clears some known flags like the safari and strength ones, logically for resetting the safari battles and the strength boulders moved.
That bike stuff is for when entering the cycling road, you can't dismount the bike. Logically, when flying to another map, we have to reset that effect!
I'm still researching the other flags!
For now, it's all.