From 2e2ad2688d9b14f78dc6c4190f04b8c1db5585a4 Mon Sep 17 00:00:00 2001 From: spherallic Date: Wed, 14 Jun 2023 22:57:49 +0200 Subject: [PATCH] Fix multi-mare NiGHTS path rendering --- Source/Core/Rendering/Renderer2D.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Rendering/Renderer2D.cs b/Source/Core/Rendering/Renderer2D.cs index 5f5e4920..47700d76 100755 --- a/Source/Core/Rendering/Renderer2D.cs +++ b/Source/Core/Rendering/Renderer2D.cs @@ -1647,7 +1647,7 @@ namespace CodeImp.DoomBuilder.Rendering polyspawns.Sort((x, y) => x.Tag.CompareTo(y.Tag)); // Sort by axis number and mare number. - axistransferlines.Sort((x, y) => (x.Args[1] | x.Args[0]).CompareTo(y.Args[1] | y.Args[0])); + axistransferlines = axistransferlines.OrderBy(x => x.Args[0]).ThenBy(x => x.Args[1]).ToList(); // Collect relevant lines if (General.Settings.SRB2RenderPolyobjects)