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:
pfero
2017-10-28 23:47:52 +02:00
committed by yenatch
parent 4e4e792474
commit 7c9a156133
6 changed files with 269 additions and 269 deletions

View File

@@ -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