From 11862ac06ba673e52f8306596fd661042355d5c9 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Wed, 23 Jan 2013 04:04:21 +0000 Subject: [PATCH] - Sync A_LookEx with A_Look, with regards to COMPATF_SOUNDTARGET. SVN r4036 (trunk) --- src/p_enemy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_enemy.cpp b/src/p_enemy.cpp index 6cf7d7be6..0961e8671 100644 --- a/src/p_enemy.cpp +++ b/src/p_enemy.cpp @@ -1868,7 +1868,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_LookEx) { if (!(flags & LOF_NOSOUNDCHECK)) { - targ = (self->flags & MF_NOSECTOR)? self->Sector->SoundTarget : self->LastHeard; + targ = (i_compatflags & COMPATF_SOUNDTARGET || self->flags & MF_NOSECTOR)? + self->Sector->SoundTarget : self->LastHeard; if (targ != NULL) { // [RH] If the soundtarget is dead, don't chase it