Fixed compilation with GCC/Clang

No more 'error: cannot jump from this goto statement to its label' because of 'note: jump bypasses variable initialization'
This commit is contained in:
alexey.lysiuk 2017-01-02 17:57:26 +02:00
parent 53c545d045
commit 41a107a89f

View file

@ -203,6 +203,8 @@ void R_RenderMaskedSegRange (drawseg_t *ds, int x1, int x2)
mfloorclip = openings + ds->sprbottomclip - ds->x1; mfloorclip = openings + ds->sprbottomclip - ds->x1;
mceilingclip = openings + ds->sprtopclip - ds->x1; mceilingclip = openings + ds->sprtopclip - ds->x1;
float *MaskedSWall, MaskedScaleY, rw_scalestep;
// [RH] Draw fog partition // [RH] Draw fog partition
if (ds->bFogBoundary) if (ds->bFogBoundary)
{ {
@ -217,11 +219,11 @@ void R_RenderMaskedSegRange (drawseg_t *ds, int x1, int x2)
goto clearfog; goto clearfog;
} }
float *MaskedSWall = (float *)(openings + ds->swall) - ds->x1; MaskedSWall = (float *)(openings + ds->swall) - ds->x1;
float MaskedScaleY = ds->yscale; MaskedScaleY = ds->yscale;
maskedtexturecol = (fixed_t *)(openings + ds->maskedtexturecol) - ds->x1; maskedtexturecol = (fixed_t *)(openings + ds->maskedtexturecol) - ds->x1;
spryscale = ds->iscale + ds->iscalestep * (x1 - ds->x1); spryscale = ds->iscale + ds->iscalestep * (x1 - ds->x1);
float rw_scalestep = ds->iscalestep; rw_scalestep = ds->iscalestep;
if (fixedlightlev >= 0) if (fixedlightlev >= 0)
R_SetColorMapLight((r_fullbrightignoresectorcolor) ? &FullNormalLight : basecolormap, 0, FIXEDLIGHT2SHADE(fixedlightlev)); R_SetColorMapLight((r_fullbrightignoresectorcolor) ? &FullNormalLight : basecolormap, 0, FIXEDLIGHT2SHADE(fixedlightlev));