aircraft_cmd.c
changeset 2819 710436dd4288
parent 2804 b932fe148d36
child 2848 cb4b1cc0bf65
--- a/aircraft_cmd.c	Thu Jan 05 16:51:10 2006 +0000
+++ b/aircraft_cmd.c	Thu Jan 05 21:35:54 2006 +0000
@@ -452,29 +452,6 @@
 	return 0;
 }
 
-/** Change the service interval for aircraft.
- * @param x,y unused
- * @param p1 vehicle ID that is being service-interval-changed
- * @param p2 new service interval
- */
-int32 CmdChangeAircraftServiceInt(int x, int y, uint32 flags, uint32 p1, uint32 p2)
-{
-	Vehicle *v;
-	uint16 serv_int = GetServiceIntervalClamped(p2); /* Double check the service interval from the user-input */
-
-	if (serv_int != p2 || !IsVehicleIndex(p1)) return CMD_ERROR;
-
-	v = GetVehicle(p1);
-
-	if (v->type != VEH_Aircraft || !CheckOwnership(v->owner)) return CMD_ERROR;
-
-	if (flags & DC_EXEC) {
-		v->service_interval = serv_int;
-		InvalidateWindowWidget(WC_VEHICLE_DETAILS, v->index, 7);
-	}
-
-	return 0;
-}
 
 /** Refits an aircraft to the specified cargo type.
  * @param x,y unused