From 219b6f7c5d519966620a570a5690752a5c64aa90 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 31 Jan 2016 06:51:11 -0600 Subject: [PATCH] Fix R_DrawFogBoundary for right-edge exclusivity --- src/r_draw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_draw.cpp b/src/r_draw.cpp index 08519c088..f82a843d8 100644 --- a/src/r_draw.cpp +++ b/src/r_draw.cpp @@ -1797,8 +1797,8 @@ void R_DrawFogBoundary (int x1, int x2, short *uclip, short *dclip) // we need to use a new colormap. fixed_t lightstep = rw_lightstep; - fixed_t light = rw_light+lightstep*(x2-x1); - int x = x2; + fixed_t light = rw_light+lightstep*(x2-x1-1); + int x = x2-1; int t2 = uclip[x]; int b2 = dclip[x]; int rcolormap = GETPALOOKUP (light, wallshade);