mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
Allow passing a null pointer to spriteheightofsptr() for the height return value
git-svn-id: https://svn.eduke32.com/eduke32@7405 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
76863607e3
commit
798eaeb980
1 changed files with 2 additions and 1 deletions
|
@ -10230,6 +10230,7 @@ int32_t spriteheightofsptr(const uspritetype *spr, int32_t *height, int32_t also
|
||||||
const int32_t picnum=spr->picnum, yrepeat=spr->yrepeat;
|
const int32_t picnum=spr->picnum, yrepeat=spr->yrepeat;
|
||||||
|
|
||||||
hei = (tilesiz[picnum].y*yrepeat)<<2;
|
hei = (tilesiz[picnum].y*yrepeat)<<2;
|
||||||
|
if (height != NULL)
|
||||||
*height = hei;
|
*height = hei;
|
||||||
|
|
||||||
if (spr->cstat&128)
|
if (spr->cstat&128)
|
||||||
|
|
Loading…
Reference in a new issue