From ee43c4ff95ebe317d3108ede324ef8824e9ba37f Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 26 Apr 2016 23:00:41 -0500 Subject: [PATCH] Fixed: Accidentally left in /65536.0 in WallMost() --- src/r_segs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_segs.cpp b/src/r_segs.cpp index fc52b0e4f..4dc5c249d 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -2910,12 +2910,12 @@ int WallMost (short *mostbuf, const secplane_t &plane, const FWallCoords *wallc) y = z1 * InvZtoScale / iy1; if (ix2 == ix1) { - mostbuf[ix1] = (short)xs_RoundToInt(y/65536.0 + CenterY); + mostbuf[ix1] = (short)xs_RoundToInt(y + CenterY); } else { fixed_t yinc = FLOAT2FIXED(((z2 * InvZtoScale / iy2) - y) / (ix2-ix1)); - qinterpolatedown16short (&mostbuf[ix1], ix2-ix1, FLOAT2FIXED(y/65536.0 + CenterY), yinc); + qinterpolatedown16short (&mostbuf[ix1], ix2-ix1, FLOAT2FIXED(y + CenterY), yinc); } return bad;