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;