equal
deleted
inserted
replaced
4 |
4 |
5 #include "stdafx.h" |
5 #include "stdafx.h" |
6 #include "openttd.h" |
6 #include "openttd.h" |
7 #include "station_map.h" |
7 #include "station_map.h" |
8 |
8 |
9 |
9 /** |
|
10 * Get the station type (rail, airport, truck etc) for the given tile. |
|
11 * @param t the tile to get the station type of. |
|
12 * @pre IsTileType(t, MP_STATION) |
|
13 * @return the station type of the given tile. |
|
14 */ |
10 StationType GetStationType(TileIndex t) |
15 StationType GetStationType(TileIndex t) |
11 { |
16 { |
12 assert(IsTileType(t, MP_STATION)); |
17 assert(IsTileType(t, MP_STATION)); |
13 if (IsRailwayStation(t)) return STATION_RAIL; |
18 if (IsRailwayStation(t)) return STATION_RAIL; |
14 if (IsAirport(t)) return STATION_AIRPORT; |
19 if (IsAirport(t)) return STATION_AIRPORT; |