summaryrefslogtreecommitdiff
path: root/rail.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-04 11:35:52 +0000
committercelestar <celestar@openttd.org>2006-04-04 11:35:52 +0000
commit8b151d8faa1c059ec874427c1d25f5783eeee6d4 (patch)
treee6e0b22a7932338beafa21c661c109ec9a1de75b /rail.c
parentcc0ffe658224ca45262affab3df0c5900f084d05 (diff)
downloadopenttd-8b151d8faa1c059ec874427c1d25f5783eeee6d4.tar.xz
(svn r4272) -Codechange: Moved the map-accessing stuff from station.h into station_map.h
Diffstat (limited to 'rail.c')
-rw-r--r--rail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rail.c b/rail.c
index 688ec9aab..f89fcaa3a 100644
--- a/rail.c
+++ b/rail.c
@@ -4,7 +4,7 @@
#include "openttd.h"
#include "bridge_map.h"
#include "rail.h"
-#include "station.h"
+#include "station_map.h"
#include "tunnel_map.h"
/* XXX: Below 3 tables store duplicate data. Maybe remove some? */
@@ -119,7 +119,7 @@ RailType GetTileRailType(TileIndex tile, Trackdir trackdir)
break;
case MP_STATION:
- if (IsTrainStationTile(tile)) return GetRailType(tile);
+ if (IsRailwayStationTile(tile)) return GetRailType(tile);
break;
case MP_TUNNELBRIDGE: