summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-15 20:13:47 +0000
committerrubidium <rubidium@openttd.org>2009-09-15 20:13:47 +0000
commite9ae22d2c554814cf256a95dde841cea30a86a3e (patch)
tree60020ddbd0ed387fe8901c7c6e4d28c5bd008277 /src
parent28f759f90599b419080aebd7b697fb4e9a809fce (diff)
downloadopenttd-e9ae22d2c554814cf256a95dde841cea30a86a3e.tar.xz
(svn r17551) -Fix [FS#3201] (r17222): vehicles waiting for their time table didn't load anymore after their initial load was completed
Diffstat (limited to 'src')
-rw-r--r--src/economy.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 2736ef23d..77dd93109 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1095,9 +1095,6 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left)
{
assert(v->current_order.IsType(OT_LOADING));
- /* When we've finished loading we're just staying here till the timetable 'runs' out */
- if (HasBit(v->vehicle_flags, VF_LOADING_FINISHED)) return;
-
assert(v->load_unload_time_rem != 0);
/* We have not waited enough time till the next round of loading/unloading */
@@ -1119,6 +1116,7 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left)
/* The train reversed in the station. Take the "easy" way
* out and let the train just leave as it always did. */
SetBit(v->vehicle_flags, VF_LOADING_FINISHED);
+ v->load_unload_time_rem = 1;
return;
}