mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Fix errant use of tsprite extra field to check an enemy's health.
git-svn-id: https://svn.eduke32.com/eduke32@5401 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7eec6b36a5
commit
a2076027dd
1 changed files with 2 additions and 1 deletions
|
@ -7361,7 +7361,8 @@ void G_DoSpriteAnimations(int32_t ourx, int32_t oury, int32_t oura, int32_t smoo
|
|||
continue;
|
||||
default:
|
||||
// NOTE: wall-aligned sprites will never take on ceiling/floor shade...
|
||||
if ((t->cstat&16) || (A_CheckEnemySprite((const spritetype *)t) && t->extra > 0) || t->statnum == STAT_PLAYER)
|
||||
if ((t->cstat&16) || (A_CheckEnemySprite((const spritetype *)t) &&
|
||||
(unsigned)t->owner < MAXSPRITES && sprite[t->owner].extra > 0) || t->statnum == STAT_PLAYER)
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue