From 4ce26ad8fadf84b32c981a0f81d14314b7ea3ecf Mon Sep 17 00:00:00 2001 From: codeimp Date: Sat, 3 Jan 2009 14:27:51 +0000 Subject: [PATCH] linedefs with backsides only after removing a sector will now be correctly flipped --- Source/BuilderModes/ClassicModes/SectorsMode.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/BuilderModes/ClassicModes/SectorsMode.cs b/Source/BuilderModes/ClassicModes/SectorsMode.cs index 1f821447..88aba54f 100644 --- a/Source/BuilderModes/ClassicModes/SectorsMode.cs +++ b/Source/BuilderModes/ClassicModes/SectorsMode.cs @@ -850,6 +850,13 @@ namespace CodeImp.DoomBuilder.BuilderModes } else { + // If the line only has a back side left, flip the line and sides + if((lines[i].Front == null) && (lines[i].Back != null)) + { + lines[i].FlipVertices(); + lines[i].FlipSidedefs(); + } + // Update sided flags lines[i].ApplySidedFlags(); }