You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Use ~X instead of $ff ^ X
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user