From 6c96405ab2994333a5cc167395481f643020df10 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Mon, 20 Feb 2023 10:45:58 +0000 Subject: [PATCH] Fix CS1573 --- OpenRA.Mods.Common/Pathfinder/PathSearch.cs | 1 + OpenRA.Mods.Common/WorldExtensions.cs | 2 ++ OpenRA.ruleset | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Pathfinder/PathSearch.cs b/OpenRA.Mods.Common/Pathfinder/PathSearch.cs index 66757549b3..befff0d755 100644 --- a/OpenRA.Mods.Common/Pathfinder/PathSearch.cs +++ b/OpenRA.Mods.Common/Pathfinder/PathSearch.cs @@ -162,6 +162,7 @@ namespace OpenRA.Mods.Common.Pathfinder /// The search can skip some areas of the search space, meaning it has less work to do. /// /// Determines if the given cell is the target. + /// If provided, will record all nodes explored by searches performed. PathSearch(IPathGraph graph, Func heuristic, int heuristicWeightPercentage, Func targetPredicate, IRecorder recorder) { Graph = graph; diff --git a/OpenRA.Mods.Common/WorldExtensions.cs b/OpenRA.Mods.Common/WorldExtensions.cs index 08ea12abc9..a6a309be93 100644 --- a/OpenRA.Mods.Common/WorldExtensions.cs +++ b/OpenRA.Mods.Common/WorldExtensions.cs @@ -24,6 +24,8 @@ namespace OpenRA.Mods.Common /// The position the line should start at /// The position the line should end at /// How close an actor's health radius needs to be to the line to be considered 'intersected' by the line + /// If set, only considers the size of actors that have an + /// trait which may improve search performance. However does NOT filter the returned actors on this trait. /// A list of all the actors intersected by the line public static IEnumerable FindActorsOnLine(this World world, WPos lineStart, WPos lineEnd, WDist lineWidth, bool onlyBlockers = false) { diff --git a/OpenRA.ruleset b/OpenRA.ruleset index 4fd5d88b5a..6879b0af32 100644 --- a/OpenRA.ruleset +++ b/OpenRA.ruleset @@ -6,7 +6,6 @@ -