From e3a909c29649d63f737162c094f146771c88766c Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 30 Dec 2016 16:05:57 +0200 Subject: [PATCH] Fixed compilation with GCC/Clang No more 'error: cannot jump from this goto statement to its label' --- src/swrenderer/scene/r_decal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/swrenderer/scene/r_decal.cpp b/src/swrenderer/scene/r_decal.cpp index 374552621..4159595fd 100644 --- a/src/swrenderer/scene/r_decal.cpp +++ b/src/swrenderer/scene/r_decal.cpp @@ -126,6 +126,7 @@ namespace swrenderer decal_pos = { dcx, dcy }; DVector2 angvec = (curline->v2->fPos() - curline->v1->fPos()).Unit(); + float maskedScaleY; decal_left = decal_pos - edge_left * angvec - ViewPos; decal_right = decal_pos + edge_right * angvec - ViewPos; @@ -253,7 +254,7 @@ namespace swrenderer sprflipvert = false; } - float maskedScaleY = float(1 / yscale); + maskedScaleY = float(1 / yscale); do { int x = x1;