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
1 changed files with 2 additions and 1 deletions

View File

@ -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;