From 7d9858fec42d0cef1f0349c3cef250003c5ed66d Mon Sep 17 00:00:00 2001 From: Sylvie <35663410+Rangi42@users.noreply.github.com> Date: Sun, 29 Sep 2024 11:24:35 -0400 Subject: Identify more bit flags (#119) * Identify more bit flags * Bit serves dual use in debug mode --- engine/gfx/animated_objects.asm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engine/gfx') diff --git a/engine/gfx/animated_objects.asm b/engine/gfx/animated_objects.asm index 208a2f85..0a71f59d 100644 --- a/engine/gfx/animated_objects.asm +++ b/engine/gfx/animated_objects.asm @@ -227,7 +227,7 @@ GetCurrentAnimatedObjectTileYCoordinate: push hl ld a, [hl] ld hl, wCurAnimatedObjectOAMAttributes - bit 6, [hl] + bit OAM_Y_FLIP, [hl] jr z, .no_flip add $8 xor $ff @@ -240,7 +240,7 @@ GetCurrentAnimatedObjectTileXCoordinate: push hl ld a, [hl] ld hl, wCurAnimatedObjectOAMAttributes - bit 5, [hl] + bit OAM_X_FLIP, [hl] jr z, .no_flip add $8 xor $ff @@ -254,14 +254,14 @@ SetCurrentAnimatedObjectOAMAttributes: ld b, a ld a, [hl] xor b - and $e0 + and OAM_HFLIP | OAM_VFLIP | OAM_BEHIND_BG ld b, a ld a, [hl] - and $10 + and OAM_OBP1 or b - bit 4, a + bit OAM_OBP_NUM, a ret z - or $4 + or OAM_HIGH_PALS ret GetCurrentAnimatedObjectOAMDataPointer: -- cgit v1.3.1-sl0p