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) {