From 5dcc9d584d514b1209aaa98c4985981536396414 Mon Sep 17 00:00:00 2001 From: codeimp Date: Fri, 28 Nov 2008 06:50:32 +0000 Subject: [PATCH] this doesn't work right, i'll have to think of something better --- Source/VisualModes/VisualMode.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Source/VisualModes/VisualMode.cs b/Source/VisualModes/VisualMode.cs index fa7e4e93..cabba454 100644 --- a/Source/VisualModes/VisualMode.cs +++ b/Source/VisualModes/VisualMode.cs @@ -346,7 +346,7 @@ namespace CodeImp.DoomBuilder.VisualModes (sd.Other.Sector.FloorHeight >= (sd.Other.Sector.CeilHeight - 0.0001f))) { // This blocks the view - clipper.InsertRange(sd.Line.Start.Position, sd.Line.End.Position); + //clipper.InsertRange(sd.Line.Start.Position, sd.Line.End.Position); } } } @@ -366,18 +366,8 @@ namespace CodeImp.DoomBuilder.VisualModes // Within view range? if(sd.Line.DistanceToSq(campos, true) < viewdist2) { - Vector2D p = sd.Line.Start.Position; - if((p.x > s.BBox.Left + Linedef.SIDE_POINT_DISTANCE) && - (p.x < s.BBox.Right - Linedef.SIDE_POINT_DISTANCE) && - (p.y > s.BBox.Top + Linedef.SIDE_POINT_DISTANCE) && - (p.y < s.BBox.Bottom - Linedef.SIDE_POINT_DISTANCE)) - { - // Sidedef is inside source sector, other sector always visible! - todo.Push(os); - stackedsectors.Add(os, os); - } // Can we see this sector? - else if(clipper.TestRange(sd.Line.Start.Position, sd.Line.End.Position)) + //if(clipper.TestRange(sd.Line.Start.Position, sd.Line.End.Position)) { // Process this sector as well todo.Push(os);