Fix EVENT_ANIMATESPRITES.

git-svn-id: https://svn.eduke32.com/eduke32@4784 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2014-11-30 23:19:11 +00:00
parent 89a9010db1
commit 944d64215e

View file

@ -7144,11 +7144,12 @@ static int32_t G_CheckAdultTile(int32_t pic)
return 0;
}
static void G_DoEventAnimSprites(int32_t j)
static inline void G_DoEventAnimSprites(int32_t j)
{
const int32_t ow = tsprite[j].owner;
if (((unsigned) ow >= MAXSPRITES || (spriteext[ow].flags & SPREXT_TSPRACCESS) != SPREXT_TSPRACCESS) || tsprite[j].statnum != TSPR_TEMP)
if ((((unsigned)ow >= MAXSPRITES || (spriteext[ow].flags & SPREXT_TSPRACCESS) != SPREXT_TSPRACCESS)) &&
tsprite[j].statnum != TSPR_TEMP)
return;
spriteext[ow].tspr = &tsprite[j];