From c57a4dceb6b7b3caf4508598fcf475fe9ca5d336 Mon Sep 17 00:00:00 2001 From: spherallic Date: Wed, 29 May 2024 19:08:33 +0200 Subject: [PATCH] Fix newly drawn closed sectors not using properties of nearby sectors --- Source/Core/Geometry/Tools.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Geometry/Tools.cs b/Source/Core/Geometry/Tools.cs index fe7ec6cf..7b90c256 100755 --- a/Source/Core/Geometry/Tools.cs +++ b/Source/Core/Geometry/Tools.cs @@ -966,7 +966,7 @@ namespace CodeImp.DoomBuilder.Geometry List newverts = new List(); List intersectverts = new List(); List newlines = new List(); - List oldlines = new List(General.Map.Map.Linedefs); + List alllines = new List(General.Map.Map.Linedefs); List insidesides = new List(); List mergeverts = new List(); List nonmergeverts = new List(General.Map.Map.Vertices); @@ -1098,7 +1098,7 @@ namespace CodeImp.DoomBuilder.Geometry RectangleF editarea = MapSet.CreateArea(newlines); editarea = MapSet.IncreaseArea(editarea, mergeverts); editarea.Inflate(1.0f, 1.0f); - oldlines = new List(MapSet.FilterByArea(oldlines, ref editarea)); + List oldlines = new List(MapSet.FilterByArea(alllines, ref editarea)); nonmergeverts = new List(MapSet.FilterByArea(nonmergeverts, ref editarea)); /***************************************************\ @@ -1458,7 +1458,7 @@ namespace CodeImp.DoomBuilder.Geometry { // Make the new sector //mxd. Apply sector overrides only if a closed drawing is created - Sector newsector = Tools.MakeSector(sectorlines, oldlines, (useOverrides && drawingclosed && newlines.Count > 2)); + Sector newsector = Tools.MakeSector(sectorlines, alllines, (useOverrides && drawingclosed && newlines.Count > 2)); if(newsector == null) return false; if(istruenewsector) newsector.Marked = true;