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 | 87e03c7aa8364ab7418396079522c26ec112dc83 (patch) | |
tree | 36bede5a1addc08aa86f08b4b01dbd3f41400689 /src/station.h | |
parent | 6c17cd4c464799c3a83da3a677c8002fc26f7d9d (diff) | |
download | openttd-87e03c7aa8364ab7418396079522c26ec112dc83.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; |