summaryrefslogtreecommitdiff
path: root/src/station.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-01-14 20:00:25 +0000
committertron <tron@openttd.org>2007-01-14 20:00:25 +0000
commit968f748836f1f585badc6eb61b0bcc2f72b1e0c4 (patch)
tree837897b2871d945d8f2930440096f309071189c5 /src/station.h
parent13da8502c03efe9fcc3ac88081517512d878ef34 (diff)
downloadopenttd-968f748836f1f585badc6eb61b0bcc2f72b1e0c4.tar.xz
(svn r8130) Provide struct GoodsEntry with a constructor
Diffstat (limited to 'src/station.h')
-rw-r--r--src/station.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/station.h b/src/station.h
index 6c624f88b..73486bffe 100644
--- a/src/station.h
+++ b/src/station.h
@@ -10,7 +10,19 @@
#include "tile.h"
#include "newgrf_station.h"
+static const StationID INVALID_STATION = 0xFFFF;
+
typedef struct GoodsEntry {
+ GoodsEntry() :
+ waiting_acceptance(0),
+ days_since_pickup(0),
+ rating(175),
+ enroute_from(INVALID_STATION),
+ last_speed(0),
+ last_age(255),
+ feeder_profit(0)
+ {}
+
uint16 waiting_acceptance;
byte days_since_pickup;
byte rating;
@@ -30,8 +42,6 @@ enum {
ROAD_STOP_LIMIT = 16,
};
-static const StationID INVALID_STATION = 0xFFFF;
-
typedef struct RoadStop {
TileIndex xy;
bool used;