]> granicus.if.org Git - nethack/commitdiff
looking at hidden monsters followup
authorPatR <rankin@nethack.org>
Wed, 17 Feb 2016 01:58:15 +0000 (17:58 -0800)
committerPatR <rankin@nethack.org>
Wed, 17 Feb 2016 01:58:15 +0000 (17:58 -0800)
The new code wasn't handling the Wizard mimicking another monster
correctly for probing.

src/pager.c

index bff09ca28226cdb6452c545a6ef191f06d3cdf44..3e95336b0823871354503b0a52affc1d1f8a2c9e 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 pager.c $NHDT-Date: 1455672994 2016/02/17 01:36:34 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.92 $ */
+/* NetHack 3.6 pager.c $NHDT-Date: 1455674291 2016/02/17 01:58:11 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.93 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -106,11 +106,13 @@ char *outbuf;
                               : an(obj_descr[STRANGE_OBJECT].oc_name));
             if (fakeobj)
                 dealloc_obj(otmp);
-        } else if (mon->m_ap_type == M_AP_MONSTER && altmon) {
-            Strcat(outbuf, an(mons[mon->mappearance].mname));
         } else {
             Strcat(outbuf, something);
         }
+    } else if (mon->m_ap_type == M_AP_MONSTER) {
+        if (altmon)
+            Sprintf(outbuf, ", masquerading as %s",
+                    an(mons[mon->mappearance].mname));
     } else if (mon->mundetected) {
         Strcpy(outbuf, ", hiding");
         if (hides_under(mon->data)) {