From fbb5689f298348003c5fbf90956656e1f946e30f Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 7 Aug 2014 22:26:24 -0500 Subject: [PATCH] Eliminate extra vars from FWallCoords - cx1, cx2, cy1, and cy2 are not used anywhere, so get rid of them. - Also annotated the comments to indicate the corresponding arrays in the Build engine. --- src/r_bsp.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/r_bsp.h b/src/r_bsp.h index 79dac6c88e..1b5af9805d 100644 --- a/src/r_bsp.h +++ b/src/r_bsp.h @@ -33,14 +33,11 @@ struct FWallCoords { - fixed_t tx1, tx2; // x coords at left, right of wall in view space - fixed_t ty1, ty2; // y coords at left, right of wall in view space + fixed_t tx1, tx2; // x coords at left, right of wall in view space rx1,rx2 + fixed_t ty1, ty2; // y coords at left, right of wall in view space ry1,ry2 - fixed_t cx1, cx2; // x coords at left, right of wall in camera space - fixed_t cy1, cy2; // y coords at left, right of wall in camera space - - short sx1, sx2; // x coords at left, right of wall in screen space - fixed_t sz1, sz2; // depth at left, right of wall in screen space + short sx1, sx2; // x coords at left, right of wall in screen space xb1,xb2 + fixed_t sz1, sz2; // depth at left, right of wall in screen space yb1,yb2 bool Init(int x1, int y1, int x2, int y2, int too_close); };