summaryrefslogtreecommitdiff
path: root/src/tile_types.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tile_types.c')
-rw-r--r--src/tile_types.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/tile_types.c b/src/tile_types.c
index fe28d9d..cad63fa 100644
--- a/src/tile_types.c
+++ b/src/tile_types.c
@@ -82,8 +82,6 @@ const u8 gDungeonWaterType[] = {
DUNGEON_WATER_TYPE_NONE,
};
-extern bool8 IsWaterTileset();
-
bool8 IsTileGround(struct MapTile* tile)
{
bool8 isGround = FALSE;
@@ -101,3 +99,16 @@ bool8 IsTileGround(struct MapTile* tile)
}
return isGround;
}
+
+bool8 IsWaterTileset()
+{
+ if (gDungeonGlobalData->tileset == 0 ||
+ gDungeonGlobalData->tileset == 0x31 ||
+ gDungeonGlobalData->tileset == 0x20 ||
+ gDungeonGlobalData->tileset == 0x21 ||
+ gDungeonGlobalData->tileset == 0x36)
+ {
+ return TRUE;
+ }
+ return FALSE;
+}