]> granicus.if.org Git - nethack/commit
fix #H105 - inconsistent handling of "meditating" monsters (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 25 May 2006 04:36:11 +0000 (04:36 +0000)
committernethack.rankin <nethack.rankin>
Thu, 25 May 2006 04:36:11 +0000 (04:36 +0000)
commit0620ca1bc6ce9b5e11ba46d377cf6f3ac0583a11
tree71a0cdb1ce05aedaba570858d8eee553b5d57d6c
parentc67b9788fc954bd5d5257ac8bb3896195ddbbe63
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.)
doc/fixes35.0
src/mon.c
src/music.c