Fix a "maybe-uninitialized" compiler warning
!2131 (merged) added a R_CheckSpriteVisible
function, where I get a warning: 'yscale' may be used uninitialized [-Wmaybe-uninitialized]
warning when compiling SRB2. This merge request initialises it to zero to avoid that. (Technically, the warning only occurred with yscale
, not texturemid
or height
(for some reason?), but I decided to zero-initialise all three variables for consistency.)
-
TL;DR: Fixed a compiler warning