]> granicus.if.org Git - nethack/commitdiff
monster strategy fix
authornethack.rankin <nethack.rankin>
Fri, 10 May 2002 01:59:25 +0000 (01:59 +0000)
committernethack.rankin <nethack.rankin>
Fri, 10 May 2002 01:59:25 +0000 (01:59 +0000)
     From the newsgroup:  using #chat to talk to a "meditating"
monster like quest nemesis or Medusa could elicilit responses
without waking it up (at least if you moved fast enough enough
to probe it before it got its next turn).

doc/fixes34.1
src/sounds.c

index a769be14cddeb432f359304b6c058ccbacf7f756..46098ee007d5854a2c9cb7eec3ed704bc08235a6 100644 (file)
@@ -99,6 +99,7 @@ fix goodpos() so worm segments don't get placed on top of each other (causing
        a possible display problem if the worm is cut in two)
 fix fountain noises on some special levels (castle, valk home, various mines)
 disallow mounting a trapped steed to avoid inappropriate trap effects
+#chat with meditating monster will rouse it
 
 
 Platform- and/or Interface-Specific Fixes
index 4c8c9527f59e9d9b70e529942dfdeee7c9465daf..459019d333296f55ae36bc74b20ffb10260af933 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)sounds.c   3.4     2001/02/14      */
+/*     SCCS Id: @(#)sounds.c   3.4     2002/05/06      */
 /*     Copyright (c) 1989 Janet Walz, Mike Threepoint */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -902,6 +902,9 @@ dochat()
        return(0);
     }
 
+    /* if this monster is waiting for something, prod it into action */
+    mtmp->mstrategy &= ~STRAT_WAITMASK;
+
     if (mtmp->mtame && mtmp->meating) {
        if (!canspotmon(mtmp))
            map_invisible(mtmp->mx, mtmp->my);