corrections

This commit is contained in:
sphere 2021-10-17 16:52:54 +02:00
parent 5b4b6acda5
commit 9d8d43c176

View file

@ -1036,11 +1036,13 @@ namespace CodeImp.DoomBuilder.BuilderModes
Vector2D offset = new Vector2D(xoffset, yoffset);
if (sectortag == 0)
{
if (markedOnly && !l.Marked)
continue;
ApplyFlatAlignment(l, l.Front.Sector, alignfloor, alignceiling, offset, rotation);
}
else if (sectortags.ContainsKey(sectortag))
{
if (markedOnly && !(s.Marked || l.Marked))
continue;
{
List<Sector> sectors = sectortags[sectortag];
foreach (Sector s in sectors)
{
@ -1610,7 +1612,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Dispose if source was disposed or marked
var newSectors = new Dictionary<Sector,VisualSector>(allsectors.Count);
General.Test("!Rebuild sector list", () => {
foreach (KeyValuePair<Sector, VisualSector> vs in allsectors)
{
if (vs.Value != null)
@ -1620,8 +1621,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
else
newSectors.Add(vs.Key, vs.Value);
}
}
});
};
// Things depend on the sector they are in and because we can't
// easily determine which ones changed, we dispose all things