diff options
Diffstat (limited to 'scripts/victoryroad1.asm')
-rwxr-xr-x | scripts/victoryroad1.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/victoryroad1.asm b/scripts/victoryroad1.asm index 71c3823d..0f4de43e 100755 --- a/scripts/victoryroad1.asm +++ b/scripts/victoryroad1.asm @@ -1,14 +1,14 @@ VictoryRoad1Script: - ld hl, wd126 + ld hl, wCurrentMapScriptFlags bit 5, [hl] res 5, [hl] call nz, .next call EnableAutoTextBoxDrawing ld hl, VictoryRoad1TrainerHeaders ld de, VictoryRoad1ScriptPointers - ld a, [W_VICTORYROAD1CURSCRIPT] + ld a, [wVictoryRoad1CurScript] call ExecuteCurMapScriptInTable - ld [W_VICTORYROAD1CURSCRIPT], a + ld [wVictoryRoad1CurScript], a ret .next CheckEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH @@ -32,7 +32,7 @@ VictoryRoad1Script0: ld a, [H_SPRITEINDEX] cp $f jp z, CheckFightingMapTrainers - ld hl, wd126 + ld hl, wCurrentMapScriptFlags set 5, [hl] SetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH ret |