]> granicus.if.org Git - nethack/commitdiff
B14016 - monster detection of mimics
authorcohrs <cohrs>
Tue, 10 Dec 2002 06:22:22 +0000 (06:22 +0000)
committercohrs <cohrs>
Tue, 10 Dec 2002 06:22:22 +0000 (06:22 +0000)
When display_monster was changed in 3.4.0 to take multiple sightflags, the
mimic case was not updated completely.

doc/fixes34.1
src/display.c

index 2f7f513d0662a3a3f0a4da1fe3201b4a9da58754..661409fe522aae8808e6b448ef2b106b254a3bbc 100644 (file)
@@ -320,6 +320,8 @@ second attack for two-weapon combat will miss if first knocks target away
 jousting effect no longer occurs every time riding character hits with lance
 skeletons should be able to wear the armor they're created with
 bouncing zaps should not bounce around the edge of closed doors
+mimics that are detected but not seen should not display as their mimiced
+       form when the detection ends
 
 
 Platform- and/or Interface-Specific Fixes
index e2f1b5eef33e8f2a8a1dd204169988f7b0a65367..c5138f2379ca60ba478b0133152d0646dc3e9776 100644 (file)
@@ -371,7 +371,7 @@ display_monster(x, y, mon, sightflags, worm_tail)
      * the mimic was mimicing.
      */
 
-    if (mon_mimic && sightflags) {
+    if (mon_mimic && (sightflags == PHYSICALLY_SEEN)) {
        switch (mon->m_ap_type) {
            default:
                impossible("display_monster:  bad m_ap_type value [ = %d ]",