Skip to content

Commit 4333f54

Browse files
committed
Remove unnecessary and incorrect fraction setting logic
1 parent 7a3bfb3 commit 4333f54

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Sledge.Formats.Bsp/Algorithms/Clipping.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ Vector3 end
3333
PassedThroughNonSolid = false
3434
};
3535
tl.Success = !TraceLineRecursive(hull, hull.GetRoot(), 0, 1, start, end, tl);
36-
if (tl.Success)
37-
{
38-
var len1 = (tl.EndPoint - tl.StartPoint).Length();
39-
var len2 = (end - start).Length();
40-
tl.EndFraction = len1 == 0 ? 0 : len2 / len1;
41-
}
4236
return tl;
4337
}
4438

0 commit comments

Comments
 (0)