Fix A_CheckEnemyTile() returning 1 for "fixed" sprites (see r1913).

Those sprites are usually decorative, and certainly not enemies!

git-svn-id: https://svn.eduke32.com/eduke32@2667 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-05-18 12:45:29 +00:00
parent 83aa5d2c18
commit 2963e2874d

View file

@ -7882,8 +7882,8 @@ int32_t A_CheckEnemyTile(int32_t pn)
{
//this case can't be handled by the dynamictostatic system because it adds
//stuff to the value from names.h so handling separately
if (A_CheckSpriteTileFlags(pn, SPRITE_BADGUY) ||
ActorType[pn] ||
if (A_CheckSpriteTileFlags(pn, SPRITE_BADGUY) ||
(ActorType[pn]&3) ||
(pn >= GREENSLIME && pn <= GREENSLIME+7))
return 1;