summaryrefslogtreecommitdiff
path: root/src/station_base.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-01-18 12:32:50 +0000
committeryexo <yexo@openttd.org>2010-01-18 12:32:50 +0000
commitab68f08886743fd32ac52bdc666cbf2da9b53287 (patch)
tree59d999df01a07669be733777d5161b2ca30f2abf /src/station_base.h
parent84bc831e324071b252202e6bac472fe95686d462 (diff)
downloadopenttd-ab68f08886743fd32ac52bdc666cbf2da9b53287.tar.xz
(svn r18857) -Codechange: don't rely on the fact that all airports are rectangular
Diffstat (limited to 'src/station_base.h')
-rw-r--r--src/station_base.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/station_base.h b/src/station_base.h
index 5de946581..def8c595d 100644
--- a/src/station_base.h
+++ b/src/station_base.h
@@ -121,6 +121,11 @@ public:
return IsRailStationTile(tile) && GetStationIndex(tile) == this->index;
}
+ /* virtual */ FORCEINLINE bool TileBelongsToAirport(TileIndex tile) const
+ {
+ return IsAirportTile(tile) && GetStationIndex(tile) == this->index;
+ }
+
/* virtual */ uint32 GetNewGRFVariable(const ResolverObject *object, byte variable, byte parameter, bool *available) const;
/* virtual */ void GetTileArea(TileArea *ta, StationType type) const;