You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Use constants more
This commit is contained in:
@@ -2574,7 +2574,7 @@ ContinueSpawnFacing: ; 57db
|
|||||||
|
|
||||||
_SetPlayerPalette: ; 57e2
|
_SetPlayerPalette: ; 57e2
|
||||||
ld a, d
|
ld a, d
|
||||||
and %10000000
|
and 1 << 7
|
||||||
ret z
|
ret z
|
||||||
ld bc, 0 ; debug?
|
ld bc, 0 ; debug?
|
||||||
ld hl, OBJECT_FACING
|
ld hl, OBJECT_FACING
|
||||||
@@ -2584,13 +2584,13 @@ _SetPlayerPalette: ; 57e2
|
|||||||
ld [hl], a
|
ld [hl], a
|
||||||
ld a, d
|
ld a, d
|
||||||
swap a
|
swap a
|
||||||
and %00000111
|
and PALETTE_MASK
|
||||||
ld d, a
|
ld d, a
|
||||||
ld bc, wPlayerStruct
|
ld bc, wPlayerStruct
|
||||||
ld hl, OBJECT_PALETTE
|
ld hl, OBJECT_PALETTE
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
and %11111000
|
and $ff ^ PALETTE_MASK
|
||||||
or d
|
or d
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
ret
|
ret
|
||||||
|
Reference in New Issue
Block a user