Fixed clang errors about the gotos leaving certain variables uninitialized
This commit is contained in:
parent
f523193121
commit
b3cee51fd0
2 changed files with 6 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue