summaryrefslogtreecommitdiff
path: root/tile.h
diff options
context:
space:
mode:
Diffstat (limited to 'tile.h')
-rw-r--r--tile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tile.h b/tile.h
index 1d8cd094a..9b0b45dfd 100644
--- a/tile.h
+++ b/tile.h
@@ -103,4 +103,9 @@ static inline bool IsTileOwner(TileIndex tile, Owner owner)
return GetTileOwner(tile) == owner;
}
+static inline bool IsLevelCrossing(TileIndex tile)
+{
+ return (_map5[tile] & 0xF0) == 0x10;
+}
+
#endif