You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Avoid "+- 1" at every maskbits
This commit is contained in:
@@ -251,7 +251,7 @@ InitPokegearTilemap: ; 90da8 (24:4da8)
|
||||
ld a, $4f
|
||||
call ByteFill
|
||||
ld a, [wPokegearCard]
|
||||
maskbits NUM_POKEGEAR_CARDS +- 1
|
||||
maskbits NUM_POKEGEAR_CARDS
|
||||
add a
|
||||
ld e, a
|
||||
ld d, 0
|
||||
@@ -289,7 +289,7 @@ InitPokegearTilemap: ; 90da8 (24:4da8)
|
||||
ld [hWY], a
|
||||
; swap region maps
|
||||
ld a, [wPokegearMapRegion]
|
||||
maskbits NUM_REGIONS +- 1
|
||||
maskbits NUM_REGIONS
|
||||
xor 1
|
||||
ld [wPokegearMapRegion], a
|
||||
ret
|
||||
|
||||
Reference in New Issue
Block a user