linedefs with backsides only after removing a sector will now be correctly flipped

This commit is contained in:
codeimp 2009-01-03 14:27:51 +00:00
parent 63b4f20172
commit 4ce26ad8fa

View file

@ -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();
}