From 0a887948eb456540a69a4de6cefdc5bae398311a Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Mon, 25 Apr 2016 18:48:14 +0100 Subject: [PATCH] Ensure pixhigh/pixlow is always set whenever the game decides a top/bottom texture should be drawn This fixes the rendering glitches encountered around slopes in Glacier Gear, yes. :) --- src/r_segs.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/r_segs.c b/src/r_segs.c index 574421fb0..3f11bb364 100644 --- a/src/r_segs.c +++ b/src/r_segs.c @@ -2696,11 +2696,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) worldlowslope >>= 4; #endif - if (worldhigh < worldtop -#ifdef ESLOPE - || worldhighslope < worldtopslope -#endif - ) + if (toptexture) { pixhigh = (centeryfrac>>4) - FixedMul (worldhigh, rw_scale); pixhighstep = -FixedMul (rw_scalestep,worldhigh); @@ -2713,11 +2709,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) #endif } - if (worldlow > worldbottom -#ifdef ESLOPE - || worldlowslope > worldbottomslope -#endif - ) + if (bottomtexture) { pixlow = (centeryfrac>>4) - FixedMul (worldlow, rw_scale); pixlowstep = -FixedMul (rw_scalestep,worldlow);