summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-03-03 14:56:28 +0000
committertruelight <truelight@openttd.org>2005-03-03 14:56:28 +0000
commitae4995c671f09185ccf5aa3e85653b2ac2d4583b (patch)
treea4420f3df7642246abd79f137128c150e466f73a
parent862faa16c0b075b0f2ba765a7a2eee86d34c62f0 (diff)
downloadopenttd-ae4995c671f09185ccf5aa3e85653b2ac2d4583b.tar.xz
(svn r1920) -Fix: no longer a station where you only unload is bad for your town-rating
-rw-r--r--economy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/economy.c b/economy.c
index 62b63e24a..283bf3386 100644
--- a/economy.c
+++ b/economy.c
@@ -1360,6 +1360,8 @@ int LoadUnloadVehicle(Vehicle *v)
if (v->cargo_count != 0) {
if (v->cargo_source != last_visited && ge->waiting_acceptance & 0x8000) {
// deliver goods to the station
+ st->time_since_unload = 0;
+
unloading_time += v->cargo_count; /* TTDBUG: bug in original TTD */
profit += DeliverGoods(v->cargo_count, v->cargo_type, v->cargo_source, last_visited, v->cargo_days);
result |= 1;