From 0780dc8138ae6edf3aee217f48e7759804a95464 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 19 Aug 2009 15:27:55 +0000 Subject: (svn r17222) -Fix [FS#3129, FS#3130]: with time tables vehicles would stay in the 'loading' state after they have finished loading --- src/economy.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/economy.cpp') diff --git a/src/economy.cpp b/src/economy.cpp index 94674a5b6..f3d4c7499 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1107,6 +1107,10 @@ void PrepareUnload(Vehicle *front_v) 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 */ -- cgit v1.2.3-70-g09d2