diff options
author | yexo <yexo@openttd.org> | 2010-01-15 12:08:08 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-15 12:08:08 +0000 |
commit | d669801f1d18e295e7497eaa19d0398da67bffe8 (patch) | |
tree | 38c0215af215420346de054481c93d83f36da482 /src/station_base.h | |
parent | c37d69d161d418eaf363588df0ac67e61fd7f23e (diff) | |
download | openttd-d669801f1d18e295e7497eaa19d0398da67bffe8.tar.xz |
(svn r18807) -Codechange: introduce AirportSpec and move several non-statemachine-related variables to there
Diffstat (limited to 'src/station_base.h')
-rw-r--r-- | src/station_base.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/station_base.h b/src/station_base.h index cdf06c0d7..05de77560 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -66,6 +66,12 @@ public: return GetAirport(airport_type); } + const AirportSpec *GetAirportSpec() const + { + if (airport_tile == INVALID_TILE) return &AirportSpec::dummy; + return AirportSpec::Get(this->airport_type); + } + RoadStop *bus_stops; ///< All the road stops TileArea bus_station; ///< Tile area the bus 'station' part covers RoadStop *truck_stops; ///< All the truck stops |