File diff r16933:dfc43ce14a8c → r16934:30f3bc1c6966
src/vehicle.cpp
Show inline comments
 
@@ -1744,15 +1744,16 @@ void Vehicle::BeginLoading()
 

	
 
	if (this->current_order.IsType(OT_GOTO_STATION) &&
 
			this->current_order.GetDestination() == this->last_station_visited) {
 
		current_order.MakeLoading(true);
 
		UpdateVehicleTimetable(this, true);
 

	
 
		for (Order *order = this->GetOrder(this->cur_order_index);
 
				order != NULL && order->IsType(OT_AUTOMATIC);
 
				order = order->next) {
 
		const Order *order = this->GetOrder(this->cur_order_index);
 
		while (order != NULL && order->IsType(OT_AUTOMATIC)) {
 
			/* Delete order effectively deletes order, so get the next before deleting it. */
 
			order = order->next;
 
			DeleteOrder(this, this->cur_order_index);
 
		}
 

	
 
		/* Furthermore add the Non Stop flag to mark that this station
 
		 * is the actual destination of the vehicle, which is (for example)
 
		 * necessary to be known for HandleTrainLoading to determine