src/road_map.h
changeset 10689 46a1a76e734e
parent 10429 1b99254f9607
--- a/src/road_map.h	Sat May 24 12:12:02 2008 +0000
+++ b/src/road_map.h	Sat May 24 19:36:20 2008 +0000
@@ -187,6 +187,12 @@
 	}
 }
 
+static inline bool IsRoadOwner(TileIndex t, RoadType rt, Owner o)
+{
+	assert(HasTileRoadType(t, rt));
+	return (GetRoadOwner(t, rt) == o);
+}
+
 /** Which directions are disallowed ? */
 enum DisallowedRoadDirections {
 	DRD_NONE,       ///< None of the directions are disallowed