From f2743cd5ed72a2d6224ffa828aab796ed771cef2 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 19 Mar 2010 09:58:46 +0000 Subject: (svn r19464) -Codechange: move GetHangarTile to Airport --- src/station_base.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/station_base.h') 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 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; -- cgit v1.2.3-54-g00ecf