From 116defbb35d8cc472a21de7656f0b24c23af832e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 18 Aug 2013 09:11:40 +0200 Subject: [PATCH] - fixed: LookForEnemiesInBlock needs to check for MF7_NEVERTARGET. --- src/p_enemy.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_enemy.cpp b/src/p_enemy.cpp index 437940d032..fa39297e67 100644 --- a/src/p_enemy.cpp +++ b/src/p_enemy.cpp @@ -1425,6 +1425,9 @@ AActor *LookForEnemiesInBlock (AActor *lookee, int index, void *extparam) if (!(link->flags3 & MF3_ISMONSTER)) continue; // don't target it if it isn't a monster (could be a barrel) + if (link->flags7 & MF7_NEVERTARGET) + continue; + other = NULL; if (link->flags & MF_FRIENDLY) {