ship_cmd.c
changeset 593 4240f624bca0
parent 588 03521b270f62
child 679 04ca2cd69420
equal deleted inserted replaced
592:a85bab77cbdd 593:4240f624bca0
    87 	int i;
    87 	int i;
    88 
    88 
    89 	if (_patches.servint_ships == 0)
    89 	if (_patches.servint_ships == 0)
    90 		return;
    90 		return;
    91 
    91 
    92 	if (SERVICE_INTERVAL)
    92 	if (!VehicleNeedsService(v))
    93 		return;
    93 		return;
    94 
    94 
    95 	if (v->vehstatus & VS_STOPPED)
    95 	if (v->vehstatus & VS_STOPPED)
    96 		return;
    96 		return;
    97 
    97 
   212 			return;
   212 			return;
   213 	}
   213 	}
   214 
   214 
   215 	if (v->current_order.type == OT_GOTO_DEPOT &&
   215 	if (v->current_order.type == OT_GOTO_DEPOT &&
   216 			(v->current_order.flags & (OF_UNLOAD | OF_FULL_LOAD)) == (OF_UNLOAD | OF_FULL_LOAD) &&
   216 			(v->current_order.flags & (OF_UNLOAD | OF_FULL_LOAD)) == (OF_UNLOAD | OF_FULL_LOAD) &&
   217 			SERVICE_INTERVAL) {
   217 			!VehicleNeedsService(v)) {
   218 		v->cur_order_index++;
   218 		v->cur_order_index++;
   219 	}
   219 	}
   220 
   220 
   221 
   221 
   222 	if (v->cur_order_index >= v->num_orders)
   222 	if (v->cur_order_index >= v->num_orders)