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

@@ -1928,7 +1928,7 @@ static void LoadUnloadVehicle(Vehicle *front)
anything_loaded = true;
st->time_since_load = 0;
st->last_vehicle_type = v->type;
ge->last_vehicle_type = v->type;
if (ge->cargo.TotalCount() == 0) {
TriggerStationRandomisation(st, st->xy, SRT_CARGO_TAKEN, v->cargo_type);