summaryrefslogtreecommitdiff
path: root/src/station_base.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-22 14:17:07 +0000
committeryexo <yexo@openttd.org>2010-02-22 14:17:07 +0000
commit698737f485cfbdd1605faecd50395bb67f7dac75 (patch)
treeb79303520896365e70a9aa3224a5f1c6a14b5aba /src/station_base.h
parent7ca4c31cf558ff29b3cbe14cd348bcf649445dfc (diff)
downloadopenttd-698737f485cfbdd1605faecd50395bb67f7dac75.tar.xz
(svn r19198) -Codechange: store the size of stations in savegames
Diffstat (limited to 'src/station_base.h')
-rw-r--r--src/station_base.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/station_base.h b/src/station_base.h
index 251902493..222bb5893 100644
--- a/src/station_base.h
+++ b/src/station_base.h
@@ -59,13 +59,13 @@ public:
const AirportFTAClass *Airport() const
{
- if (airport_tile == INVALID_TILE) return GetAirport(AT_DUMMY);
+ if (airport.tile == INVALID_TILE) return GetAirport(AT_DUMMY);
return GetAirport(airport_type);
}
const AirportSpec *GetAirportSpec() const
{
- if (airport_tile == INVALID_TILE) return &AirportSpec::dummy;
+ if (airport.tile == INVALID_TILE) return &AirportSpec::dummy;
return AirportSpec::Get(this->airport_type);
}
@@ -74,7 +74,7 @@ public:
RoadStop *truck_stops; ///< All the truck stops
TileArea truck_station; ///< Tile area the truck 'station' part covers
- TileIndex airport_tile; ///< The location of the airport
+ TileArea airport; ///< Tile area the airport covers
TileIndex dock_tile; ///< The location of the dock
IndustryType indtype; ///< Industry type to get the name from
@@ -128,9 +128,9 @@ public:
FORCEINLINE TileIndex GetHangarTile(uint hangar_num) const
{
- assert(this->airport_tile != INVALID_TILE);
+ assert(this->airport.tile != INVALID_TILE);
assert(hangar_num < this->GetAirportSpec()->nof_depots);
- return this->airport_tile + ToTileIndexDiff(this->GetAirportSpec()->depot_table[hangar_num]);
+ return this->airport.tile + ToTileIndexDiff(this->GetAirportSpec()->depot_table[hangar_num]);
}
/* virtual */ uint32 GetNewGRFVariable(const ResolverObject *object, byte variable, byte parameter, bool *available) const;