From 079f3bd78cbc7db05fc62356360cb72b19b12ecb Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 9 Jan 2017 17:26:19 +0200 Subject: [PATCH] Fixed compilation errors with GCC/Clang No more 'error: cannot jump from this goto statement to its label' --- src/swrenderer/segments/r_drawsegment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/swrenderer/segments/r_drawsegment.cpp b/src/swrenderer/segments/r_drawsegment.cpp index fbbff4ec3f..ca875c6317 100644 --- a/src/swrenderer/segments/r_drawsegment.cpp +++ b/src/swrenderer/segments/r_drawsegment.cpp @@ -194,7 +194,7 @@ namespace swrenderer short *mfloorclip = openings + ds->sprbottomclip - ds->x1; short *mceilingclip = openings + ds->sprtopclip - ds->x1; - + double spryscale; // [RH] Draw fog partition if (ds->bFogBoundary) @@ -213,7 +213,7 @@ namespace swrenderer MaskedSWall = (float *)(openings + ds->swall) - ds->x1; MaskedScaleY = ds->yscale; maskedtexturecol = (fixed_t *)(openings + ds->maskedtexturecol) - ds->x1; - double spryscale = ds->iscale + ds->iscalestep * (x1 - ds->x1); + spryscale = ds->iscale + ds->iscalestep * (x1 - ds->x1); rw_scalestep = ds->iscalestep; if (fixedlightlev >= 0)