From 944d64215ec56930a0136b868fd02eaa0f65e781 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 30 Nov 2014 23:19:11 +0000 Subject: [PATCH] Fix EVENT_ANIMATESPRITES. git-svn-id: https://svn.eduke32.com/eduke32@4784 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 337af2c0c..6d4e65914 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -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];