From 2963e2874d6d4e761f83168f18e8f590ab68a97d Mon Sep 17 00:00:00 2001 From: helixhorned Date: Fri, 18 May 2012 12:45:29 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/actors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index 7aa3f8307..f75881297 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -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;