File diff r28277:fe0d307deeb1 → r28278:1fc682037ca2
src/economy.cpp
Show inline comments
 
@@ -1869,13 +1869,13 @@ static void LoadUnloadVehicle(Vehicle *f
 

	
 
			new_load_unload_ticks = gradual_loading_wait_time[front->type];
 
		}
 
		/* We loaded less cargo than possible for all cargo types and it's not full
 
		 * load and we're not supposed to wait any longer: stop loading. */
 
		if (!anything_unloaded && full_load_amount == 0 && reservation_left == 0 && !(front->current_order.GetLoadType() & OLFB_FULL_LOAD) &&
 
				front->current_order_time >= (uint)std::max(front->current_order.GetTimetabledWait() - front->lateness_counter, 0)) {
 
				front->current_order_time >= std::max(front->current_order.GetTimetabledWait() - front->lateness_counter, 0)) {
 
			SetBit(front->vehicle_flags, VF_STOP_LOADING);
 
		}
 

	
 
		UpdateLoadUnloadTicks(front, st, new_load_unload_ticks);
 
	} else {
 
		UpdateLoadUnloadTicks(front, st, 20); // We need the ticks for link refreshing.