station_cmd.c
changeset 4528 80cc2712b176
parent 4527 b18634a31a4a
child 4549 60410aa1aa88
--- a/station_cmd.c	Sun Sep 03 08:25:27 2006 +0000
+++ b/station_cmd.c	Sun Sep 03 10:30:38 2006 +0000
@@ -2376,7 +2376,6 @@
 void DestroyStation(Station *st)
 {
 	StationID index;
-	Vehicle *v;
 
 	index = st->index;
 
@@ -2390,23 +2389,6 @@
 	/* Now delete all orders that go to the station */
 	RemoveOrderFromAllVehicles(OT_GOTO_STATION, index);
 
-	//And do the same with aircraft that have the station as a hangar-stop
-	FOR_ALL_VEHICLES(v) {
-		bool invalidate = false;
-		if (v->type == VEH_Aircraft) {
-			Order *order;
-			FOR_VEHICLE_ORDERS(v, order) {
-				if (order->type == OT_GOTO_DEPOT && order->dest == index) {
-					order->type = OT_DUMMY;
-					order->flags = 0;
-					invalidate = true;
-				}
-			}
-		}
-		//Orders for the vehicle have been changed, invalidate the window
-		if (invalidate) InvalidateWindow(WC_VEHICLE_ORDERS, v->index);
-	}
-
 	//Subsidies need removal as well
 	DeleteSubsidyWithStation(index);