Mercurial > hg > openttd
comparison rail.c @ 3442:911176578d1b draft
(svn r4272) -Codechange: Moved the map-accessing stuff from station.h into station_map.h
author | celestar <celestar@openttd.org> |
---|---|
date | Tue, 04 Apr 2006 11:35:52 +0000 |
parents | 124bcfb458ac |
children | 853efd6b1c88 |
comparison
equal
deleted
inserted
replaced
3441:19e6251b72ba | 3442:911176578d1b |
---|---|
2 | 2 |
3 #include "stdafx.h" | 3 #include "stdafx.h" |
4 #include "openttd.h" | 4 #include "openttd.h" |
5 #include "bridge_map.h" | 5 #include "bridge_map.h" |
6 #include "rail.h" | 6 #include "rail.h" |
7 #include "station.h" | 7 #include "station_map.h" |
8 #include "tunnel_map.h" | 8 #include "tunnel_map.h" |
9 | 9 |
10 /* XXX: Below 3 tables store duplicate data. Maybe remove some? */ | 10 /* XXX: Below 3 tables store duplicate data. Maybe remove some? */ |
11 /* Maps a trackdir to the bit that stores its status in the map arrays, in the | 11 /* Maps a trackdir to the bit that stores its status in the map arrays, in the |
12 * direction along with the trackdir */ | 12 * direction along with the trackdir */ |
117 /* rail/road crossing */ | 117 /* rail/road crossing */ |
118 if (IsLevelCrossing(tile)) return GetRailTypeCrossing(tile); | 118 if (IsLevelCrossing(tile)) return GetRailTypeCrossing(tile); |
119 break; | 119 break; |
120 | 120 |
121 case MP_STATION: | 121 case MP_STATION: |
122 if (IsTrainStationTile(tile)) return GetRailType(tile); | 122 if (IsRailwayStationTile(tile)) return GetRailType(tile); |
123 break; | 123 break; |
124 | 124 |
125 case MP_TUNNELBRIDGE: | 125 case MP_TUNNELBRIDGE: |
126 if (IsTunnel(tile)) { | 126 if (IsTunnel(tile)) { |
127 if (GetTunnelTransportType(tile) == TRANSPORT_RAIL) { | 127 if (GetTunnelTransportType(tile) == TRANSPORT_RAIL) { |