summaryrefslogtreecommitdiff
path: root/src/station_base.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-01-15 12:08:08 +0000
committeryexo <yexo@openttd.org>2010-01-15 12:08:08 +0000
commitd669801f1d18e295e7497eaa19d0398da67bffe8 (patch)
tree38c0215af215420346de054481c93d83f36da482 /src/station_base.h
parentc37d69d161d418eaf363588df0ac67e61fd7f23e (diff)
downloadopenttd-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.h6
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