You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Fix WATERTILE/WALLTILE constants
WATRTILE was wrongly defined as 15, and WALLTILE as 1. Those had to be flipped around. This has allowed for us to replace inmediate values with these constants in several places to improve readability. WATRTILE was renamed to WATERTILE in the name of readability.
This commit is contained in:
@@ -76,7 +76,7 @@ Function6f07: ; 6f07
|
||||
ld a, [hl]
|
||||
ld d, a
|
||||
call GetTileCollision
|
||||
and a
|
||||
and a ; land
|
||||
jr z, Function6f3e
|
||||
scf
|
||||
ret
|
||||
@@ -89,7 +89,7 @@ Function6f2c: ; 6f2c
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
call GetTileCollision
|
||||
cp $1
|
||||
cp WATERTILE
|
||||
jr z, Function6f3e
|
||||
scf
|
||||
ret
|
||||
@@ -210,11 +210,11 @@ Function6fa1: ; 6fa1
|
||||
call GetCoordTile
|
||||
call GetTileCollision
|
||||
pop de
|
||||
and a
|
||||
and a ; land
|
||||
jr nz, .asm_6fd7
|
||||
call GetCoordTile
|
||||
call GetTileCollision
|
||||
and a
|
||||
and a ; land
|
||||
jr nz, .asm_6fd7
|
||||
xor a
|
||||
ret
|
||||
|
||||
Reference in New Issue
Block a user