aboutsummaryrefslogtreecommitdiffstats
path: root/engine/animated_objects_3e.asm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xengine/gfx/animated_objects.asm (renamed from engine/animated_objects_3e.asm)8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/animated_objects_3e.asm b/engine/gfx/animated_objects.asm
index 2373e19e..971af6b5 100755
--- a/engine/animated_objects_3e.asm
+++ b/engine/gfx/animated_objects.asm
@@ -28,10 +28,10 @@ RunObjectAnimations:
jr nz, .loop
ld a, [wCurrentAnimatedObjectOAMBufferOffset]
ld l, a
- ld h, wOAMBuffer / $100
+ ld h, HIGH(wOAMBuffer)
.deinit_unused_oam_loop
ld a, l
- cp wOAMBufferEnd % $100
+ cp LOW(wOAMBufferEnd)
jr nc, .quit
xor a
ld [hli], a
@@ -158,7 +158,7 @@ UpdateCurrentAnimatedObjectFrame:
push bc
ld a, [wCurrentAnimatedObjectOAMBufferOffset]
ld e, a
- ld d, wOAMBuffer / $100
+ ld d, HIGH(wOAMBuffer)
ld a, [hli]
ld c, a
.loop
@@ -205,7 +205,7 @@ UpdateCurrentAnimatedObjectFrame:
inc de
ld a, e
ld [wCurrentAnimatedObjectOAMBufferOffset], a
- cp wOAMBufferEnd % $100
+ cp LOW(wOAMBufferEnd)
jr nc, .oam_is_full
dec c
jr nz, .loop