From 09f8dec7d14214494516bb727f44d11f57ff4379 Mon Sep 17 00:00:00 2001 From: RedEnchilada Date: Sat, 16 May 2015 00:04:19 -0500 Subject: [PATCH] Optimization/configuration option: No Tails on a slope line makes a slope non-dynamic --- src/p_slopes.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/p_slopes.c b/src/p_slopes.c index e7d05768..9cd22f35 100644 --- a/src/p_slopes.c +++ b/src/p_slopes.c @@ -233,7 +233,7 @@ void P_SpawnSlope_Line(int linenum) // In P_SpawnSlopeLine the origin is the centerpoint of the sourcelinedef fslope = line->frontsector->f_slope = - P_MakeSlope(&point, &direction, dz, true); + P_MakeSlope(&point, &direction, dz, !(line->flags & ML_NOTAILS)); // Set up some shit fslope->extent = extent; @@ -289,7 +289,7 @@ void P_SpawnSlope_Line(int linenum) dz = FixedDiv(origin.z - point.z, extent); cslope = line->frontsector->c_slope = - P_MakeSlope(&point, &direction, dz, true); + P_MakeSlope(&point, &direction, dz, !(line->flags & ML_NOTAILS)); // Set up some shit cslope->extent = extent; @@ -352,7 +352,7 @@ void P_SpawnSlope_Line(int linenum) dz = FixedDiv(origin.z - point.z, extent); fslope = line->backsector->f_slope = - P_MakeSlope(&point, &direction, dz, true); + P_MakeSlope(&point, &direction, dz, !(line->flags & ML_NOTAILS)); // Set up some shit fslope->extent = extent; @@ -394,7 +394,7 @@ void P_SpawnSlope_Line(int linenum) dz = FixedDiv(origin.z - point.z, extent); cslope = line->backsector->c_slope = - P_MakeSlope(&point, &direction, dz, true); + P_MakeSlope(&point, &direction, dz, !(line->flags & ML_NOTAILS)); // Set up some shit cslope->extent = extent;