diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-09 19:41:03 -0500 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-09 22:00:36 -0500 |
commit | cd2a7481283beec7ba37451deeb841ebc37073ba (patch) | |
tree | 00026b5962503f36101d5f73fa62d2f532b4bcc7 /engine/scripting.asm | |
parent | 880fb511e19eb6aa413af1519731074c7ec8d852 (diff) |
More WRAM cleanup
Diffstat (limited to 'engine/scripting.asm')
-rw-r--r-- | engine/scripting.asm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/scripting.asm b/engine/scripting.asm index 3ff22599b..df22995b5 100644 --- a/engine/scripting.asm +++ b/engine/scripting.asm @@ -1355,19 +1355,19 @@ Script_earthquake: ; param (DecimalParam) ld hl, EarthquakeMovement - ld de, wd002 + ld de, wEarthquakeMovementDataBuffer ld bc, EarthquakeMovementEnd - EarthquakeMovement call CopyBytes call GetScriptByte - ld [wd003], a - and (1 << 6) - 1 - ld [wd005], a + ld [wEarthquakeMovementDataBuffer + 1], a + and %00111111 + ld [wEarthquakeMovementDataBuffer + 3], a ld b, BANK(.script) ld de, .script jp ScriptCall .script - applymovement PLAYER, wd002 + applymovement PLAYER, wEarthquakeMovementDataBuffer end EarthquakeMovement: |