fix #H105 - inconsistent handling of "meditating" monsters (trunk only)

From a bug report, monsters with the wait
strategy (described as "meditating" by stethoscope probing) could be
affected by music but left meditating.  Various wake up attempts shared
the same situation.  Finish waiting if the monster would have been woken
(or pacified).  I didn't search for places that diddle the msleeping bit
directly instead of calling one of the assorted wake() routines.

     A fair bit of this is making usage of DEADMONSTER() be consistent.
Sooner or later there'll be another monster movement overhaul and those
    if (DEADMONSTER(mon)) continue;
statements will all go away.  (Probably just wishful thinking.)
This commit is contained in:
nethack.rankin
2006-05-25 04:36:11 +00:00
parent c67b9788fc
commit 0620ca1bc6
3 changed files with 55 additions and 45 deletions

View File

@@ -140,6 +140,8 @@ don't welcome the hero to Delphi if the Oracle was angered before first entry
shopkeeper polymorphed into animal form can no longer speak
don't give attribute adjustment messages ("you feel wise") unless the current
value actually changes
meditating monsters stop meditating when affected by something which wakes
sleeping mosnters
Platform- and/or Interface-Specific Fixes