Merge branch 'fix-sprite-clip-warning' into 'master'

Fix a "maybe-uninitialized" compiler warning

See merge request STJr/SRB2!2145
This commit is contained in:
Monster Iestyn 2023-11-26 20:42:49 +00:00
commit 0309535be9

View file

@ -3201,8 +3201,8 @@ static boolean R_CheckSpriteVisible(vissprite_t *spr, INT32 x1, INT32 x2)
INT16 sz = spr->sz;
INT16 szt = spr->szt;
fixed_t texturemid, yscale, scalestep = spr->scalestep;
INT32 height;
fixed_t texturemid = 0, yscale = 0, scalestep = spr->scalestep; // "= 0" pleases the compiler
INT32 height = 0;
if (scalestep)
{