(svn r10981) -Fix [FS#1156] (r10970): stations gave ratings for accepted cargo too.

This commit is contained in:
rubidium
2007-08-26 13:55:36 +00:00
parent 36c5b4e1ef
commit a0d37ea7b9
6 changed files with 38 additions and 26 deletions

View File

@@ -24,15 +24,20 @@ DECLARE_OLD_POOL(RoadStop, RoadStop, 5, 2000)
static const byte INITIAL_STATION_RATING = 175;
struct GoodsEntry {
enum AcceptancePickup {
ACCEPTANCE,
PICKUP
};
GoodsEntry() :
acceptance(false),
acceptance_pickup(0),
days_since_pickup(255),
rating(INITIAL_STATION_RATING),
last_speed(0),
last_age(255)
{}
bool acceptance;
byte acceptance_pickup;
byte days_since_pickup;
byte rating;
byte last_speed;