Remove wallshade global from R_DrawFogBoundary

This commit is contained in:
Magnus Norddahl 2016-12-31 12:57:48 +01:00
parent 6fd3691da4
commit 918904074a
3 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@ namespace swrenderer
short spanend[MAXHEIGHT]; short spanend[MAXHEIGHT];
} }
void R_DrawFogBoundary(int x1, int x2, short *uclip, short *dclip) void R_DrawFogBoundary(int x1, int x2, short *uclip, short *dclip, int wallshade)
{ {
// This is essentially the same as R_MapVisPlane but with an extra step // This is essentially the same as R_MapVisPlane but with an extra step
// to create new horizontal spans whenever the light changes enough that // to create new horizontal spans whenever the light changes enough that

View file

@ -5,6 +5,6 @@
namespace swrenderer namespace swrenderer
{ {
void R_DrawFogBoundary(int x1, int x2, short *uclip, short *dclip); void R_DrawFogBoundary(int x1, int x2, short *uclip, short *dclip, int wallshade);
void R_DrawFogBoundarySection(int y, int y2, int x1); void R_DrawFogBoundarySection(int y, int y2, int x1);
} }

View file

@ -272,7 +272,7 @@ void R_RenderMaskedSegRange (drawseg_t *ds, int x1, int x2)
// [RH] Draw fog partition // [RH] Draw fog partition
if (ds->bFogBoundary) if (ds->bFogBoundary)
{ {
R_DrawFogBoundary (x1, x2, mceilingclip, mfloorclip); R_DrawFogBoundary (x1, x2, mceilingclip, mfloorclip, wallshade);
if (ds->maskedtexturecol == -1) if (ds->maskedtexturecol == -1)
{ {
goto clearfog; goto clearfog;