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.)
This commit is contained in:
Ashley Newson
2025-01-13 00:08:33 +00:00
committed by Gustas
parent 22d3b5e5a1
commit 9c568aba33

View File

@@ -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;