Skip to content

Commit

Permalink
rename D_800A0948 to gLoadedFromFileSelect (#1080)
Browse files Browse the repository at this point in the history
* name D_800A0948 to gMapLoadFrom

* replace comparison of 0 with LOAD_FROM_MAP

* update gLoadingDemoMap to gLoadedFromFileSelect

* up jp and ique versions

* update if statement
  • Loading branch information
Rainchus authored Jul 15, 2023
1 parent f91fe53 commit c2c5f15
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/variables.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ extern s16 D_800A0932[1];
extern s16 gMapTransitionFadeRate;
extern s16 gMapTransitionState;
extern s16 gMapTransitionStateTime;
extern s16 D_800A0948;
extern s16 gLoadedFromFileSelect;
extern s16 D_800A0954;
extern s16 D_800A0956;
extern s16 D_800A0958;
Expand Down
6 changes: 3 additions & 3 deletions src/111f0_len_860.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ void set_map_change_fade_rate(s16 fadeRate) {
}

void state_init_enter_demo(void) {
D_800A0948 = 0;
gLoadedFromFileSelect = FALSE;
init_enter_world_shared();
}

void state_init_enter_world(void) {
D_800A0948 = 1;
gLoadedFromFileSelect = TRUE;
set_map_transition_effect(TRANSITION_ENTER_WORLD);
init_enter_world_shared();
}
Expand All @@ -37,7 +37,7 @@ void state_step_enter_world(void) {
gGameStatusPtr->isBattle = FALSE;
gGameStatusPtr->disableScripts = FALSE;

if (D_800A0948 == 0) {
if (!gLoadedFromFileSelect) {
load_map_by_IDs(gGameStatusPtr->areaID, gGameStatusPtr->mapID, LOAD_FROM_MAP);
} else {
load_map_by_IDs(gGameStatusPtr->areaID, gGameStatusPtr->mapID, LOAD_FROM_FILE_SELECT);
Expand Down
2 changes: 1 addition & 1 deletion ver/ique/asm/bss.s
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ dlabel gMapTransitionState
dlabel gMapTransitionStateTime
.space 2

dlabel D_800A0948
dlabel gLoadedFromFileSelect
.space 4

dlabel D_800A094C
Expand Down
2 changes: 1 addition & 1 deletion ver/jp/asm/main.bss.s
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ dlabel gMapTransitionState
dlabel gMapTransitionStateTime
.space 2

dlabel D_800A0948
dlabel gLoadedFromFileSelect
.space 8

dlabel D_800A0950
Expand Down
2 changes: 1 addition & 1 deletion ver/us/asm/bss.s
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ dlabel gMapTransitionState
dlabel gMapTransitionStateTime
.space 2

dlabel D_800A0948
dlabel gLoadedFromFileSelect
.space 4

dlabel D_800A094C
Expand Down
2 changes: 1 addition & 1 deletion ver/us/symbol_addrs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2735,7 +2735,7 @@ gMapTransitionAlpha = 0x800A0940; // rom:0x7BD40
gMapTransitionFadeRate = 0x800A0942; // rom:0x7BD42
gMapTransitionState = 0x800A0944; // rom:0x7BD44
gMapTransitionStateTime = 0x800A0946; // rom:0x7BD46
D_800A0948 = 0x800A0948; // rom:0x7BD48
gLoadedFromFileSelect = 0x800A0948; // rom:0x7BD48
D_800A094C = 0x800A094C; // rom:0x7BD4C
D_800A0950 = 0x800A0950; // rom:0x7BD50
D_800A0954 = 0x800A0954; // rom:0x7BD54
Expand Down

0 comments on commit c2c5f15

Please sign in to comment.