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

@@ -84,7 +84,7 @@ GetPlayerStandingTile:: ; 184a
CheckOnWater:: ; 1852
ld a, [PlayerStandingTile]
call GetTileCollision
sub 1
sub WATERTILE
ret z
and a
ret