diff options
author | rubidium <rubidium@openttd.org> | 2007-08-20 20:29:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-20 20:29:22 +0000 |
commit | 8ef0cbbdf5bf72d2901d8afb898aee5e8d601d01 (patch) | |
tree | 7095055a2f7c6fb257d03746210073cd316073c1 /src | |
parent | ffdbaad8ec18961b456bc3d269187773119c6178 (diff) | |
download | openttd-8ef0cbbdf5bf72d2901d8afb898aee5e8d601d01.tar.xz |
(svn r10953) -Fix [FS#1139, FS#1143]: stations would not get a rating when there were already two stations with a "more than default" rating as no cargo would be moved to the station to be picked up.
Diffstat (limited to 'src')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index f2f92e742..2c9dc29d5 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1591,6 +1591,7 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left) /* if last speed is 0, we treat that as if no vehicle has ever visited the station. */ ge->last_speed = min(t, 255); ge->last_age = _cur_year - u->build_year; + ge->days_since_pickup = 0; /* If there's goods waiting at the station, and the vehicle * has capacity for it, load it on the vehicle. */ @@ -1626,7 +1627,6 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left) anything_loaded = true; ge->cargo.MoveTo(&v->cargo, cap, CargoList::MTA_CARGO_LOAD, st->xy); - ge->days_since_pickup = 0; unloading_time += cap; st->time_since_load = 0; |