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);