Fixed compilation with GCC/Clang

No more 'error: cannot jump from this goto statement to its label'
This commit is contained in:
alexey.lysiuk 2016-12-30 16:05:57 +02:00
parent 3992fd32cb
commit e3a909c296

View file

@ -126,6 +126,7 @@ namespace swrenderer
decal_pos = { dcx, dcy }; decal_pos = { dcx, dcy };
DVector2 angvec = (curline->v2->fPos() - curline->v1->fPos()).Unit(); DVector2 angvec = (curline->v2->fPos() - curline->v1->fPos()).Unit();
float maskedScaleY;
decal_left = decal_pos - edge_left * angvec - ViewPos; decal_left = decal_pos - edge_left * angvec - ViewPos;
decal_right = decal_pos + edge_right * angvec - ViewPos; decal_right = decal_pos + edge_right * angvec - ViewPos;
@ -253,7 +254,7 @@ namespace swrenderer
sprflipvert = false; sprflipvert = false;
} }
float maskedScaleY = float(1 / yscale); maskedScaleY = float(1 / yscale);
do do
{ {
int x = x1; int x = x1;