AntennaRelay: Exclude flag vessels from the search.
[AntennaRange.git] / AntennaRelay.cs
blob:a/AntennaRelay.cs -> blob:b/AntennaRelay.cs
--- a/AntennaRelay.cs
+++ b/AntennaRelay.cs
@@ -138,9 +138,10 @@
 					.ToList();
 
 			nearbyVessels.RemoveAll(v => v.vesselType == VesselType.Debris);
-
-			Tools.PostDebugMessage(string.Format(
-				"{0}: Non-debris vessels in range: {1}",
+			nearbyVessels.RemoveAll(v => v.vesselType == VesselType.Flag);
+
+			Tools.PostDebugMessage(string.Format(
+				"{0}: Non-debris, non-flag vessels in range: {1}",
 				this.GetType().Name,
 				nearbyVessels.Count
 				));