Changeset - r12746:83e5cf81ce7e
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-08-19 15:27:55
rubidium@openttd.org
(svn r17222) -Fix [FS#3129, FS#3130]: with time tables vehicles would stay in the 'loading' state after they have finished loading
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -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 */
0 comments (0 inline, 0 general)