summaryrefslogtreecommitdiff
path: root/economy.c
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
commit098e83b3754dcc59b61f73ae7ee71689f76a6426 (patch)
treea4420f3df7642246abd79f137128c150e466f73a /economy.c
parent120f9b2ba1d196ca8f89a0275a87d808f039f29e (diff)
downloadopenttd-098e83b3754dcc59b61f73ae7ee71689f76a6426.tar.xz
(svn r1920) -Fix: no longer a station where you only unload is bad for your town-rating
Diffstat (limited to 'economy.c')
-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;