mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-27 11:40:52 +00:00
Optimization/configuration option: No Tails on a slope line makes a slope non-dynamic
This commit is contained in:
parent
6fcdac494f
commit
09f8dec7d1
1 changed files with 4 additions and 4 deletions
|
@ -233,7 +233,7 @@ void P_SpawnSlope_Line(int linenum)
|
||||||
// In P_SpawnSlopeLine the origin is the centerpoint of the sourcelinedef
|
// In P_SpawnSlopeLine the origin is the centerpoint of the sourcelinedef
|
||||||
|
|
||||||
fslope = line->frontsector->f_slope =
|
fslope = line->frontsector->f_slope =
|
||||||
P_MakeSlope(&point, &direction, dz, true);
|
P_MakeSlope(&point, &direction, dz, !(line->flags & ML_NOTAILS));
|
||||||
|
|
||||||
// Set up some shit
|
// Set up some shit
|
||||||
fslope->extent = extent;
|
fslope->extent = extent;
|
||||||
|
@ -289,7 +289,7 @@ void P_SpawnSlope_Line(int linenum)
|
||||||
dz = FixedDiv(origin.z - point.z, extent);
|
dz = FixedDiv(origin.z - point.z, extent);
|
||||||
|
|
||||||
cslope = line->frontsector->c_slope =
|
cslope = line->frontsector->c_slope =
|
||||||
P_MakeSlope(&point, &direction, dz, true);
|
P_MakeSlope(&point, &direction, dz, !(line->flags & ML_NOTAILS));
|
||||||
|
|
||||||
// Set up some shit
|
// Set up some shit
|
||||||
cslope->extent = extent;
|
cslope->extent = extent;
|
||||||
|
@ -352,7 +352,7 @@ void P_SpawnSlope_Line(int linenum)
|
||||||
dz = FixedDiv(origin.z - point.z, extent);
|
dz = FixedDiv(origin.z - point.z, extent);
|
||||||
|
|
||||||
fslope = line->backsector->f_slope =
|
fslope = line->backsector->f_slope =
|
||||||
P_MakeSlope(&point, &direction, dz, true);
|
P_MakeSlope(&point, &direction, dz, !(line->flags & ML_NOTAILS));
|
||||||
|
|
||||||
// Set up some shit
|
// Set up some shit
|
||||||
fslope->extent = extent;
|
fslope->extent = extent;
|
||||||
|
@ -394,7 +394,7 @@ void P_SpawnSlope_Line(int linenum)
|
||||||
dz = FixedDiv(origin.z - point.z, extent);
|
dz = FixedDiv(origin.z - point.z, extent);
|
||||||
|
|
||||||
cslope = line->backsector->c_slope =
|
cslope = line->backsector->c_slope =
|
||||||
P_MakeSlope(&point, &direction, dz, true);
|
P_MakeSlope(&point, &direction, dz, !(line->flags & ML_NOTAILS));
|
||||||
|
|
||||||
// Set up some shit
|
// Set up some shit
|
||||||
cslope->extent = extent;
|
cslope->extent = extent;
|
||||||
|
|
Loading…
Reference in a new issue