summaryrefslogtreecommitdiff
path: root/tile.h
diff options
context:
space:
mode:
Diffstat (limited to 'tile.h')
-rw-r--r--tile.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tile.h b/tile.h
index bd2917223..bcb06d29d 100644
--- a/tile.h
+++ b/tile.h
@@ -57,4 +57,14 @@ static inline bool IsTileType(TileIndex tile, TileType type)
return GetTileType(tile) == type;
}
+static inline bool GetTileOwner(TileIndex tile)
+{
+ return _map_owner[tile];
+}
+
+static inline bool IsTileOwner(TileIndex tile, Owner owner)
+{
+ return GetTileOwner(tile) == owner;
+}
+
#endif