diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-11-23 20:50:17 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-11-23 20:50:17 -0500 |
commit | 14a21880a0fad34c946beab55182b338a7be9a9d (patch) | |
tree | d576085115ad1e318d8cd50fc3bbc7912301c37c /engine/gfx/sprites.asm | |
parent | ddb01660dd5ef8844986e70e7d12b1e66aab4926 (diff) |
Use ~X instead of $ff ^ X
Diffstat (limited to 'engine/gfx/sprites.asm')
-rw-r--r-- | engine/gfx/sprites.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/gfx/sprites.asm b/engine/gfx/sprites.asm index 94213946..b13d407a 100644 --- a/engine/gfx/sprites.asm +++ b/engine/gfx/sprites.asm @@ -338,7 +338,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 @@ -423,7 +423,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] |