diff options
author | tron <tron@openttd.org> | 2007-02-16 09:38:43 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-02-16 09:38:43 +0000 |
commit | 128caa5050f8c2a0ee17e7dc48ef4dc06bb52751 (patch) | |
tree | 36bede5a1addc08aa86f08b4b01dbd3f41400689 /src/station.h | |
parent | 2bd7e648500e74e47094e4b3c03f752a8ce15eb1 (diff) | |
download | openttd-128caa5050f8c2a0ee17e7dc48ef4dc06bb52751.tar.xz |
(svn r8755) -Fix
Abbreviate GetAirport(st->airport_type) to st->Airport()
Diffstat (limited to 'src/station.h')
-rw-r--r-- | src/station.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/station.h b/src/station.h index 6d89280aa..6ec5777c6 100644 --- a/src/station.h +++ b/src/station.h @@ -3,6 +3,7 @@ #ifndef STATION_H #define STATION_H +#include "airport.h" #include "player.h" #include "oldpool.h" #include "sprite.h" @@ -112,6 +113,12 @@ struct Station { return type == RoadStop::BUS ? bus_stops : truck_stops; } + const AirportFTAClass *Airport() const + { + assert(airport_tile != 0); + return GetAirport(airport_type); + } + TileIndex xy; RoadStop *bus_stops; RoadStop *truck_stops; |