From 9c568aba333252392602b4487c7d62d0cf59aab6 Mon Sep 17 00:00:00 2001 From: Ashley Newson Date: Mon, 13 Jan 2025 00:08:33 +0000 Subject: [PATCH] Fix map generator failures due to broken TilingPath edge extension Coastlines and cliffs at the edge of a map should have been getting extended beyond the map edge help them tile reliably. This was not happening due to a conditional that accidentally got inverted during a refactor. Fixing the conditional makes beach and cliff tiling significantly more reliable. (Note that there is no effect on road tiling.) --- OpenRA.Mods.Common/MapGenerator/TilingPath.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/MapGenerator/TilingPath.cs b/OpenRA.Mods.Common/MapGenerator/TilingPath.cs index 714a88077a..4658ee1546 100644 --- a/OpenRA.Mods.Common/MapGenerator/TilingPath.cs +++ b/OpenRA.Mods.Common/MapGenerator/TilingPath.cs @@ -900,7 +900,7 @@ namespace OpenRA.Mods.Common.MapGenerator if (points == null) return null; - if (points[0] != points[^1]) + if (points[0] == points[^1]) { // Is a loop. return points;