From f4ea285f028ec2c838142bebe91259e096f2f36f Mon Sep 17 00:00:00 2001 From: RedEnchilada Date: Mon, 20 Apr 2015 12:31:30 -0500 Subject: [PATCH] Fix vertical linedefs on slopes rendering improperly --- src/r_segs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/r_segs.c b/src/r_segs.c index 2cb04b25e..c313c955c 100644 --- a/src/r_segs.c +++ b/src/r_segs.c @@ -1517,7 +1517,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) // left temp = xtoviewangle[start]+viewangle; - if (curline->v1->x == curline->v2->x) { + /*if (curline->v1->x == curline->v2->x) { // Line seg is vertical, so no line-slope form for it tan = FINETANGENT((temp+ANGLE_90)>>ANGLETOFINESHIFT); @@ -1530,7 +1530,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) segleft.x = viewx; segleft.y = curline->v1->y-FixedMul(viewx-curline->v1->x, tan); - } else { + } else */{ // Both lines can be written in slope-intercept form, so figure out line intersection float a1, b1, c1, a2, b2, c2, det; // 1 is the seg, 2 is the view angle vector... @@ -1551,7 +1551,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) // right temp = xtoviewangle[stop]+viewangle; - if (curline->v1->x == curline->v2->x) { + /*if (curline->v1->x == curline->v2->x) { // Line seg is vertical, so no line-slope form for it tan = FINETANGENT((temp+ANGLE_90)>>ANGLETOFINESHIFT); @@ -1564,7 +1564,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) segright.x = viewx; segright.y = curline->v1->y-FixedMul(viewx-curline->v1->x, tan); - } else { + } else */{ // Both lines can be written in slope-intercept form, so figure out line intersection float a1, b1, c1, a2, b2, c2, det; // 1 is the seg, 2 is the view angle vector...