mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 16:07:45 +00:00
Fixed compilation with GCC/Clang
No more 'error: cannot jump from this goto statement to its label / jump bypasses variable initialization'
This commit is contained in:
parent
e57c6e98a8
commit
8260bbbe77
1 changed files with 3 additions and 1 deletions
|
@ -147,6 +147,8 @@ namespace swrenderer
|
||||||
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;
|
||||||
|
|
||||||
|
double texturemid;
|
||||||
|
|
||||||
if (WallC.Init(decal_left, decal_right, TOO_CLOSE_Z))
|
if (WallC.Init(decal_left, decal_right, TOO_CLOSE_Z))
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
@ -214,7 +216,7 @@ namespace swrenderer
|
||||||
}
|
}
|
||||||
|
|
||||||
yscale = decal->ScaleY;
|
yscale = decal->ScaleY;
|
||||||
double texturemid = WallSpriteTile->TopOffset + (zpos - ViewPos.Z) / yscale;
|
texturemid = WallSpriteTile->TopOffset + (zpos - ViewPos.Z) / yscale;
|
||||||
|
|
||||||
// Clip sprite to drawseg
|
// Clip sprite to drawseg
|
||||||
x1 = MAX<int>(clipper->x1, x1);
|
x1 = MAX<int>(clipper->x1, x1);
|
||||||
|
|
Loading…
Reference in a new issue