summaryrefslogtreecommitdiff
path: root/scripts/route23.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/route23.asm')
-rwxr-xr-xscripts/route23.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/route23.asm b/scripts/route23.asm
index ca980843..b82ab505 100755
--- a/scripts/route23.asm
+++ b/scripts/route23.asm
@@ -2,11 +2,11 @@ Route23Script:
call Route23Script_511e9
call EnableAutoTextBoxDrawing
ld hl, Route23ScriptPointers
- ld a, [W_ROUTE23CURSCRIPT]
+ ld a, [wRoute23CurScript]
jp JumpTable
Route23Script_511e9:
- ld hl, wd126
+ ld hl, wCurrentMapScriptFlags
bit 6, [hl]
res 6, [hl]
ret z
@@ -128,7 +128,7 @@ Route23Script1:
ret nz
Route23Script2:
ld a, $0
- ld [W_ROUTE23CURSCRIPT], a
+ ld [wRoute23CurScript], a
ret
Route23TextPointers:
@@ -199,7 +199,7 @@ Route23Script_51346:
call PrintText
call Route23Script_512d8
ld a, $1
- ld [W_ROUTE23CURSCRIPT], a
+ ld [wRoute23CurScript], a
ret
.asm_5136e
ld hl, VictoryRoadGuardText2
@@ -210,7 +210,7 @@ Route23Script_51346:
EventFlagAddress hl, EVENT_PASSED_CASCADEBADGE_CHECK
predef FlagActionPredef
ld a, $2
- ld [W_ROUTE23CURSCRIPT], a
+ ld [wRoute23CurScript], a
ret
Route23Script_51388: