roadveh_cmd.c
changeset 593 4240f624bca0
parent 588 03521b270f62
child 679 04ca2cd69420
equal deleted inserted replaced
592:a85bab77cbdd 593:4240f624bca0
   567 			return;
   567 			return;
   568 	}
   568 	}
   569 
   569 
   570 	if (v->current_order.type == OT_GOTO_DEPOT &&
   570 	if (v->current_order.type == OT_GOTO_DEPOT &&
   571 			(v->current_order.flags & (OF_UNLOAD | OF_FULL_LOAD)) == (OF_UNLOAD | OF_FULL_LOAD) &&
   571 			(v->current_order.flags & (OF_UNLOAD | OF_FULL_LOAD)) == (OF_UNLOAD | OF_FULL_LOAD) &&
   572 			SERVICE_INTERVAL ) {
   572 			!VehicleNeedsService(v)) {
   573 		v->cur_order_index++;
   573 		v->cur_order_index++;
   574 	}
   574 	}
   575 
   575 
   576 	if (v->cur_order_index >= v->num_orders)
   576 	if (v->cur_order_index >= v->num_orders)
   577 		v->cur_order_index = 0;
   577 		v->cur_order_index = 0;
  1431 	int i;
  1431 	int i;
  1432 
  1432 
  1433 	if (_patches.servint_roadveh == 0)
  1433 	if (_patches.servint_roadveh == 0)
  1434 		return;
  1434 		return;
  1435 
  1435 
  1436 	if (SERVICE_INTERVAL)
  1436 	if (!VehicleNeedsService(v))
  1437 		return;
  1437 		return;
  1438 
  1438 
  1439 	if (v->vehstatus & VS_STOPPED)
  1439 	if (v->vehstatus & VS_STOPPED)
  1440 		return;
  1440 		return;
  1441 
  1441