From 35a4526c1df52e7cdf50df6e722b3f90f7ed3a81 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 16 Sep 2009 22:45:28 +0000 Subject: [PATCH] - Fixed: A_LookEx did not work for monsters having the MF_NOSECTOR flag. SVN r1849 (trunk) --- docs/rh-log.txt | 1 + src/p_enemy.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index bd48ce1ce..2272627fe 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,5 @@ September 16, 2009 (Changes by Graf Zahl) +- Fixed: A_LookEx did not work for monsters having the MF_NOSECTOR flag. - Fixed: The deprecated flag handler for the old bounce flags needs to clear BOUNCE_MBF and BOUNCE_UseSeeSound, too, when clearing one of these flags. - Fixed: When adding the AVOIDMELEE code the code was accidentally changed so that diff --git a/src/p_enemy.cpp b/src/p_enemy.cpp index d2a1e1c60..34ec66558 100644 --- a/src/p_enemy.cpp +++ b/src/p_enemy.cpp @@ -1841,6 +1841,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_LookEx) { if (!(flags & LOF_NOSOUNDCHECK)) { + targ = self->flags & MF_NOSECTOR)? self->Sector->SoundTarget : self->LastHeard; + targ = self->LastHeard; if (targ != NULL) {