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:
@@ -84,7 +84,7 @@ GetPlayerStandingTile:: ; 184a
|
||||
CheckOnWater:: ; 1852
|
||||
ld a, [PlayerStandingTile]
|
||||
call GetTileCollision
|
||||
sub 1
|
||||
sub WATERTILE
|
||||
ret z
|
||||
and a
|
||||
ret
|
||||
|
Reference in New Issue
Block a user