summaryrefslogtreecommitdiff
path: root/engine/gfx
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-11-23 20:37:18 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2021-11-23 20:37:18 -0500
commite706b878d9f78466e6cc9eda184e14a798cc4a0d (patch)
treea5625f28a4d5af1358727b54772659cee892b031 /engine/gfx
parentab0f9c287a45d1986985545d7ec6a2cd862e26fc (diff)
Use ~X instead of $ff ^ X
Diffstat (limited to 'engine/gfx')
-rw-r--r--engine/gfx/sprites.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/gfx/sprites.asm b/engine/gfx/sprites.asm
index 81f65c52d..b3c781625 100644
--- a/engine/gfx/sprites.asm
+++ b/engine/gfx/sprites.asm
@@ -351,7 +351,7 @@ GetSpriteOAMAttr:
and PRIORITY | Y_FLIP | X_FLIP
ld b, a
ld a, [hl]
- and $ff ^ (PRIORITY | Y_FLIP | X_FLIP)
+ and ~(PRIORITY | Y_FLIP | X_FLIP)
or b
ret
@@ -436,7 +436,7 @@ GetSpriteAnimFrame:
push af
ld a, [hl]
push hl
- and $ff ^ (Y_FLIP << 1 | X_FLIP << 1)
+ and ~(Y_FLIP << 1 | X_FLIP << 1)
ld hl, SPRITEANIMSTRUCT_DURATIONOFFSET
add hl, bc
add [hl]