summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2015-07-29 22:08:10 -0700
committerMarcus Huderle <huderlem@gmail.com>2015-07-29 22:08:10 -0700
commitbcdfb05fe3556f40a4b8025a2334b493d987376b (patch)
tree39d895d8819b515c48219c14a7f26bbd11f5cfcb /main.asm
parent1155c78f86f4966a450d97326d214a58e229aaf4 (diff)
Label index for initial map selection.
Diffstat (limited to 'main.asm')
-rwxr-xr-xmain.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.asm b/main.asm
index 7eb5810..5149c95 100755
--- a/main.asm
+++ b/main.asm
@@ -23262,13 +23262,13 @@ Func_1658f: ; 0x1658f
ld hl, Func_f269
call nz, BankSwitch
.showNextMap
- ld a, [$d4e1]
+ ld a, [wInitialMapSelectionIndex]
inc a
cp $7 ; number of maps to choose from at the start of play
jr c, .gotMapId
xor a ; wrap around to 0
.gotMapId
- ld [$d4e1], a
+ ld [wInitialMapSelectionIndex], a
ld c, a
ld b, $0
ld hl, RedStageInitialMaps
@@ -28891,13 +28891,13 @@ Func_1c839: ; 0x1c839
ld hl, Func_f269
call nz, BankSwitch
.showNextMap
- ld a, [$d4e1]
+ ld a, [wInitialMapSelectionIndex]
inc a
cp $7 ; number of maps to choose from at the start of play
jr c, .gotMapId
xor a ; wrap around to 0
.gotMapId
- ld [$d4e1], a
+ ld [wInitialMapSelectionIndex], a
ld c, a
ld b, $0
ld hl, BlueStageInitialMaps