You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Define TileCollisionTable as a standard 'db' series
This commit is contained in:
@@ -75,7 +75,7 @@ WillObjectBumpIntoWater:
|
||||
ld a, [hl]
|
||||
ld d, a
|
||||
call GetTileCollision
|
||||
and a ; LANDTILE
|
||||
and a ; LAND_TILE
|
||||
jr z, WillObjectBumpIntoTile
|
||||
scf
|
||||
ret
|
||||
@@ -87,7 +87,7 @@ WillObjectBumpIntoLand:
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
call GetTileCollision
|
||||
cp WATERTILE
|
||||
cp WATER_TILE
|
||||
jr z, WillObjectBumpIntoTile
|
||||
scf
|
||||
ret
|
||||
@@ -213,11 +213,11 @@ Function6fa1:
|
||||
call GetCoordTile
|
||||
call GetTileCollision
|
||||
pop de
|
||||
and a ; LANDTILE
|
||||
and a ; LAND_TILE
|
||||
jr nz, .not_land
|
||||
call GetCoordTile
|
||||
call GetTileCollision
|
||||
and a ; LANDTILE
|
||||
and a ; LAND_TILE
|
||||
jr nz, .not_land
|
||||
xor a
|
||||
ret
|
||||
|
||||
Reference in New Issue
Block a user