tile.h
changeset 1330 8a67d04016ce
parent 1214 33e07bbb7779
child 1333 9ac74f431ed2
--- a/tile.h	Sun Feb 06 22:25:27 2005 +0000
+++ b/tile.h	Sun Feb 06 22:36:08 2005 +0000
@@ -57,4 +57,14 @@
 	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