diff options
Diffstat (limited to 'src/station_base.h')
-rw-r--r-- | src/station_base.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/station_base.h b/src/station_base.h index f15a5dabd..9a0da91dc 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -67,6 +67,13 @@ struct Airport : public TileArea { { return this->GetSpec()->nof_depots > 0; } + + FORCEINLINE TileIndex GetHangarTile(uint hangar_num) const + { + assert(this->tile != INVALID_TILE); + assert(hangar_num < this->GetSpec()->nof_depots); + return this->tile + ToTileIndexDiff(this->GetSpec()->depot_table[hangar_num]); + } }; typedef SmallVector<Industry *, 2> IndustryVector; @@ -135,13 +142,6 @@ public: return IsAirportTile(tile) && GetStationIndex(tile) == this->index; } - FORCEINLINE TileIndex GetHangarTile(uint hangar_num) const - { - assert(this->airport.tile != INVALID_TILE); - assert(hangar_num < this->airport.GetSpec()->nof_depots); - return this->airport.tile + ToTileIndexDiff(this->airport.GetSpec()->depot_table[hangar_num]); - } - /* virtual */ uint32 GetNewGRFVariable(const ResolverObject *object, byte variable, byte parameter, bool *available) const; /* virtual */ void GetTileArea(TileArea *ta, StationType type) const; |