(svn r18857) -Codechange: don't rely on the fact that all airports are rectangular

This commit is contained in:
yexo
2010-01-18 12:32:50 +00:00
parent 4655855d46
commit 1486552f99
3 changed files with 20 additions and 1 deletions

View File

@@ -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;