(svn r14179) -Fix (r1): RemoveOrderFromAllVehicles() did not mark enough windows dirty.
This commit is contained in:
		@@ -1474,7 +1474,11 @@ void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		/* Only invalidate once, and if needed */
 | 
			
		||||
		if (invalidate) InvalidateWindow(WC_VEHICLE_ORDERS, v->index);
 | 
			
		||||
		if (invalidate) {
 | 
			
		||||
			for (const Vehicle *w = v->FirstShared(); w != NULL; w = w->NextShared()) {
 | 
			
		||||
				InvalidateVehicleOrder(w);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user