Skip to content
Snippets Groups Projects
Commit b15fca4d authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Fix line slopes

parent 1088310a
Branches
Tags
2 merge requests!2355fix newer versions of mixerx,!2283Fix equation plane distortion
...@@ -444,6 +444,7 @@ static void line_SpawnViaLine(const int linenum, const boolean spawnthinker) ...@@ -444,6 +444,7 @@ static void line_SpawnViaLine(const int linenum, const boolean spawnthinker)
fslope->xydirection = R_PointToAngle2(origin.x, origin.y, point.x, point.y); fslope->xydirection = R_PointToAngle2(origin.x, origin.y, point.x, point.y);
P_CalculateSlopeNormal(fslope); P_CalculateSlopeNormal(fslope);
P_RecalculateSlopeVectors(fslope);
if (spawnthinker && (flags & SL_DYNAMIC)) if (spawnthinker && (flags & SL_DYNAMIC))
P_AddDynLineSlopeThinker(fslope, DP_FRONTFLOOR, line, extent); P_AddDynLineSlopeThinker(fslope, DP_FRONTFLOOR, line, extent);
...@@ -461,6 +462,7 @@ static void line_SpawnViaLine(const int linenum, const boolean spawnthinker) ...@@ -461,6 +462,7 @@ static void line_SpawnViaLine(const int linenum, const boolean spawnthinker)
cslope->xydirection = R_PointToAngle2(origin.x, origin.y, point.x, point.y); cslope->xydirection = R_PointToAngle2(origin.x, origin.y, point.x, point.y);
P_CalculateSlopeNormal(cslope); P_CalculateSlopeNormal(cslope);
P_RecalculateSlopeVectors(cslope);
if (spawnthinker && (flags & SL_DYNAMIC)) if (spawnthinker && (flags & SL_DYNAMIC))
P_AddDynLineSlopeThinker(cslope, DP_FRONTCEIL, line, extent); P_AddDynLineSlopeThinker(cslope, DP_FRONTCEIL, line, extent);
...@@ -501,6 +503,7 @@ static void line_SpawnViaLine(const int linenum, const boolean spawnthinker) ...@@ -501,6 +503,7 @@ static void line_SpawnViaLine(const int linenum, const boolean spawnthinker)
fslope->xydirection = R_PointToAngle2(origin.x, origin.y, point.x, point.y); fslope->xydirection = R_PointToAngle2(origin.x, origin.y, point.x, point.y);
P_CalculateSlopeNormal(fslope); P_CalculateSlopeNormal(fslope);
P_RecalculateSlopeVectors(fslope);
if (spawnthinker && (flags & SL_DYNAMIC)) if (spawnthinker && (flags & SL_DYNAMIC))
P_AddDynLineSlopeThinker(fslope, DP_BACKFLOOR, line, extent); P_AddDynLineSlopeThinker(fslope, DP_BACKFLOOR, line, extent);
...@@ -518,6 +521,7 @@ static void line_SpawnViaLine(const int linenum, const boolean spawnthinker) ...@@ -518,6 +521,7 @@ static void line_SpawnViaLine(const int linenum, const boolean spawnthinker)
cslope->xydirection = R_PointToAngle2(origin.x, origin.y, point.x, point.y); cslope->xydirection = R_PointToAngle2(origin.x, origin.y, point.x, point.y);
P_CalculateSlopeNormal(cslope); P_CalculateSlopeNormal(cslope);
P_RecalculateSlopeVectors(cslope);
if (spawnthinker && (flags & SL_DYNAMIC)) if (spawnthinker && (flags & SL_DYNAMIC))
P_AddDynLineSlopeThinker(cslope, DP_BACKCEIL, line, extent); P_AddDynLineSlopeThinker(cslope, DP_BACKCEIL, line, extent);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment