summaryrefslogtreecommitdiff
path: root/station_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'station_map.h')
-rw-r--r--station_map.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/station_map.h b/station_map.h
new file mode 100644
index 000000000..192979d77
--- /dev/null
+++ b/station_map.h
@@ -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));
+}