Fixed clang errors about the gotos leaving certain variables uninitialized

This commit is contained in:
Magnus Norddahl 2017-01-03 20:53:40 +01:00
commit b3cee51fd0
2 changed files with 6 additions and 3 deletions

View file

@ -68,6 +68,7 @@ namespace swrenderer
bool calclighting;
bool rereadcolormap;
FDynamicColormap *usecolormap;
float light = 0;
if (decal->RenderFlags & RF_INVISIBLE || !viewactive || !decal->PicNum.isValid())
return;
@ -243,7 +244,7 @@ namespace swrenderer
rereadcolormap = false;
}
float light = lightleft + (x1 - savecoord.sx1) * lightstep;
light = lightleft + (x1 - savecoord.sx1) * lightstep;
if (fixedlightlev >= 0)
R_SetColorMapLight((r_fullbrightignoresectorcolor) ? &FullNormalLight : usecolormap, 0, FIXEDLIGHT2SHADE(fixedlightlev));
else if (fixedcolormap != NULL)