Station rating: Track last visited vehicle type separately per-cargo

This commit is contained in:
Jonathan G Rennison
2018-06-01 19:12:53 +01:00
parent 41c1a396ed
commit 777151c34d
8 changed files with 19 additions and 9 deletions

View File

@@ -216,6 +216,7 @@ struct GoodsEntry {
GoodsEntry() :
status(0),
time_since_pickup(255),
last_vehicle_type(VEH_INVALID),
rating(INITIAL_STATION_RATING),
last_speed(0),
last_age(255),
@@ -234,6 +235,8 @@ struct GoodsEntry {
*/
byte time_since_pickup;
byte last_vehicle_type;
byte rating; ///< %Station rating for this cargo.
/**
@@ -470,7 +473,6 @@ public:
byte time_since_load;
byte time_since_unload;
byte last_vehicle_type;
std::vector<Vehicle *> loading_vehicles;
GoodsEntry goods[NUM_CARGO]; ///< Goods at this station
CargoTypes always_accepted; ///< Bitmask of always accepted cargo types (by houses, HQs, industry tiles when industry doesn't accept cargo)