summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-02-20 23:59:57 -0500
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-02-20 23:59:57 -0500
commit07795b6ff619c30426ad279ef840842ef3dea2ac (patch)
treecded82c311a71d7d2dee807dfa46704d233b7d41 /src
parent4aafa434a61c07b70e6bc2364ab6f63c7e2c4169 (diff)
Decomped IsWaterTileset()
Diffstat (limited to 'src')
-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;
+}