summaryrefslogtreecommitdiff
path: root/scripts/route18gate.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2014-09-09 20:55:19 -0700
committerYamaArashi <shadow962@live.com>2014-09-09 20:55:19 -0700
commit91793015e53dbed09576f825d39e71bc59bf90a5 (patch)
tree2e21a17f28744e759c70bdef4197adaa043fe938 /scripts/route18gate.asm
parentdaf4fc87ae66e2c3d56840774efba10a9b903ee3 (diff)
Labelled and commented mostly sprite-related things
Diffstat (limited to 'scripts/route18gate.asm')
-rwxr-xr-xscripts/route18gate.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/route18gate.asm b/scripts/route18gate.asm
index 03c4b921..1500f578 100755
--- a/scripts/route18gate.asm
+++ b/scripts/route18gate.asm
@@ -28,13 +28,13 @@ Route18GateScript0: ; 4988f (12:588f)
jr z, .asm_498c6 ; 0x498a9 $1b
ld a, [wWhichTrade]
dec a
- ld [wcd38], a
+ ld [wSimulatedJoypadStatesIndex], a
ld b, $0
ld c, a
ld a, $40
- ld hl, wccd3
+ ld hl, wSimulatedJoypadStatesEnd
call FillMemory
- call Func_3486
+ call StartSimulatingJoypadStates
ld a, $1
ld [W_ROUTE18GATECURSCRIPT], a
ret
@@ -51,7 +51,7 @@ CoordsData_498cc: ; 498cc (12:58cc)
db $FF
Route18GateScript1: ; 498d5 (12:58d5)
- ld a, [wcd38]
+ ld a, [wSimulatedJoypadStatesIndex]
and a
ret nz
ld a, $f0
@@ -62,16 +62,16 @@ Route18GateScript2: ; 498df (12:58df)
ld [H_SPRITEHEIGHT], a
call DisplayTextID
ld a, $1
- ld [wcd38], a
+ ld [wSimulatedJoypadStatesIndex], a
ld a, $10
- ld [wccd3], a
- call Func_3486
+ ld [wSimulatedJoypadStatesEnd], a
+ call StartSimulatingJoypadStates
ld a, $3
ld [W_ROUTE18GATECURSCRIPT], a
ret
Route18GateScript3: ; 498f9 (12:58f9)
- ld a, [wcd38]
+ ld a, [wSimulatedJoypadStatesIndex]
and a
ret nz
xor a