station_map.h
changeset 3315 1f65f8260092
child 3334 b72ac8637a30
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/station_map.h	Fri Mar 24 08:55:08 2006 +0000
@@ -0,0 +1,14 @@
+/* $Id$ */
+
+#include "station.h"
+
+
+static inline StationID GetStationIndex(TileIndex t)
+{
+	return (StationID)_m[t].m2;
+}
+
+static inline Station* GetStationByTile(TileIndex t)
+{
+	return GetStation(GetStationIndex(t));
+}