From 5abb2e2a3d7438fe367eeddf0f620ff944a8655d Mon Sep 17 00:00:00 2001 From: cohrs Date: Tue, 10 Dec 2002 06:22:22 +0000 Subject: [PATCH] B14016 - monster detection of mimics When display_monster was changed in 3.4.0 to take multiple sightflags, the mimic case was not updated completely. --- doc/fixes34.1 | 2 ++ src/display.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 2f7f513d0..661409fe5 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -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 diff --git a/src/display.c b/src/display.c index e2f1b5eef..c5138f237 100644 --- a/src/display.c +++ b/src/display.c @@ -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 ]", -- 2.40.0