summaryrefslogtreecommitdiff
path: root/scripts/route16gate.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-09-20 00:57:27 -0400
committeryenatch <yenatch@gmail.com>2014-09-20 00:57:27 -0400
commitdff0cdeb5a2f901dc8d1a05847d09d7faf1654ad (patch)
tree3618582f76f4183b6bc22c5d4743b6d171d11128 /scripts/route16gate.asm
parent1185d69819af3493fe8ace9f576fee4b420db55e (diff)
parent2ed65d9c3e3ba60939ebe2928ffddc06a90b1876 (diff)
Merge remote-tracking branch 'YamaArashi/master'
Conflicts: constants/misc_constants.asm engine/battle/core.asm engine/menu/pokedex.asm engine/town_map.asm home.asm hram.asm
Diffstat (limited to 'scripts/route16gate.asm')
-rwxr-xr-xscripts/route16gate.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/route16gate.asm b/scripts/route16gate.asm
index e7179ea7..54bca413 100755
--- a/scripts/route16gate.asm
+++ b/scripts/route16gate.asm
@@ -28,13 +28,13 @@ Route16GateScript0: ; 496d7 (12:56d7)
jr z, .asm_4970e ; 0x496f1 $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_ROUTE16GATECURSCRIPT], a
ret
@@ -51,7 +51,7 @@ CoordsData_49714: ; 49714 (12:5714)
db $FF
Route16GateScript1: ; 4971d (12:571d)
- ld a, [wcd38]
+ ld a, [wSimulatedJoypadStatesIndex]
and a
ret nz
ld a, $f0
@@ -62,16 +62,16 @@ Route16GateScript2: ; 49727 (12:5727)
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_ROUTE16GATECURSCRIPT], a
ret
Route16GateScript3: ; 49741 (12:5741)
- ld a, [wcd38]
+ ld a, [wSimulatedJoypadStatesIndex]
and a
ret nz
xor a