summaryrefslogtreecommitdiff
path: root/src/station_base.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-08-05 12:06:13 +0000
committeryexo <yexo@openttd.org>2010-08-05 12:06:13 +0000
commit2e6713ce956d42f55f0f6f34fe12ec8459dc0ab4 (patch)
tree79f6f1582cab37d6fd7ae03b8095147d85fb846d /src/station_base.h
parent00902294b3077c163df1917121c5bb9a7b48e179 (diff)
downloadopenttd-2e6713ce956d42f55f0f6f34fe12ec8459dc0ab4.tar.xz
(svn r20374) -Codechange: add persistant storage for airports
Diffstat (limited to 'src/station_base.h')
-rw-r--r--src/station_base.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/station_base.h b/src/station_base.h
index 997539943..2d345a589 100644
--- a/src/station_base.h
+++ b/src/station_base.h
@@ -17,6 +17,7 @@
#include "newgrf_airport.h"
#include "cargopacket.h"
#include "industry_type.h"
+#include "newgrf_storage.h"
typedef Pool<BaseStation, StationID, 32, 64000> StationPool;
extern StationPool _station_pool;
@@ -47,12 +48,15 @@ struct GoodsEntry {
/** All airport-related information. Only valid if tile != INVALID_TILE. */
struct Airport : public TileArea {
+ typedef PersistentStorageArray<int32, 16> PersistentStorage;
+
Airport() : TileArea(INVALID_TILE, 0, 0) {}
uint64 flags; ///< stores which blocks on the airport are taken. was 16 bit earlier on, then 32
byte type; ///< Type of this airport, @see AirportTypes.
byte layout; ///< Airport layout number.
Direction rotation; ///< How this airport is rotated.
+ PersistentStorage psa; ///< Persistent storage for NewGRF airports
/**
* Get the AirportSpec that from the airport type of this airport. If there