diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2018-01-09 18:08:40 -0500 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2018-01-09 18:08:40 -0500 |
commit | fbc353f206ad457f32493b061b83e9067109e504 (patch) | |
tree | 03e4997c8d69b15a23ad195948d712d9eaaaef33 /tilesets/animations.asm | |
parent | cc0fd6e12c0afe9b70f55114eb3123014318e107 (diff) |
Replace some hex constants
Diffstat (limited to 'tilesets/animations.asm')
-rw-r--r-- | tilesets/animations.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tilesets/animations.asm b/tilesets/animations.asm index 89d38aa94..74679b1ee 100644 --- a/tilesets/animations.asm +++ b/tilesets/animations.asm @@ -367,9 +367,9 @@ ScrollTileUp: ; fc34f ld d, [hl] inc hl ld e, [hl] - ld bc, $e + ld bc, TILE_WIDTH * 2 - 2 add hl, bc - ld a, 4 + ld a, TILE_WIDTH / 2 .loop ld c, [hl] ld [hl], e @@ -391,14 +391,14 @@ ScrollTileUp: ; fc34f ScrollTileDown: ; fc36a ld h, d ld l, e - ld de, $e + ld de, TILE_WIDTH * 2 - 2 push hl add hl, de ld d, [hl] inc hl ld e, [hl] pop hl - ld a, 4 + ld a, TILE_WIDTH / 2 .loop ld b, [hl] ld [hl], d |