Fix R_DrawFogBoundary for right-edge exclusivity

This commit is contained in:
Randy Heit 2016-01-31 06:51:11 -06:00
parent 240ca2af4c
commit 219b6f7c5d

View file

@ -1797,8 +1797,8 @@ void R_DrawFogBoundary (int x1, int x2, short *uclip, short *dclip)
// we need to use a new colormap. // we need to use a new colormap.
fixed_t lightstep = rw_lightstep; fixed_t lightstep = rw_lightstep;
fixed_t light = rw_light+lightstep*(x2-x1); fixed_t light = rw_light+lightstep*(x2-x1-1);
int x = x2; int x = x2-1;
int t2 = uclip[x]; int t2 = uclip[x];
int b2 = dclip[x]; int b2 = dclip[x];
int rcolormap = GETPALOOKUP (light, wallshade); int rcolormap = GETPALOOKUP (light, wallshade);