From 2cd2b6bf10259cdc3c16a01129d9bc79811ad504 Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Sun, 8 Jul 2018 22:30:37 +0100 Subject: [PATCH] Backport Kart Krew's fix for the 1px HOM with horizon lines --- src/r_segs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/r_segs.c b/src/r_segs.c index 5395f414a..f492d03f8 100644 --- a/src/r_segs.c +++ b/src/r_segs.c @@ -2693,6 +2693,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) if (linedef->special == 41) { // HORIZON LINES topstep = bottomstep = 0; topfrac = bottomfrac = (centeryfrac>>4); + topfrac++; // Prevent 1px HOM } else { topstep = -FixedMul (rw_scalestep, worldtop); topfrac = (centeryfrac>>4) - FixedMul (worldtop, rw_scale);