From f86bbca9b648d10a772d73100d8272648a97a7e6 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 4 Jun 2015 18:02:20 +0300 Subject: [PATCH] Show detected pets with correct glyph When detecting monsters with blessed potion of monster detection, show pets with the correct glyph; highlights them if hilite_pet is on. --- src/display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/display.c b/src/display.c index f08748b29..b3ea39ce8 100644 --- a/src/display.c +++ b/src/display.c @@ -431,7 +431,7 @@ register xchar worm_tail; /* mon is actually a worm tail */ /* [ALI] Only use detected glyphs when monster wouldn't be * visible by any other means. */ - if (sightflags == DETECTED) { + if (sightflags == DETECTED && !mon->mtame) { if (worm_tail) num = detected_monnum_to_glyph(what_mon(PM_LONG_WORM_TAIL)); else @@ -768,10 +768,10 @@ register int x, y; && ((see_it = (tp_sensemon(mon) || MATCH_WARN_OF_MON(mon) || (see_with_infrared(mon) && mon_visible(mon)))) - || Detect_monsters) && !is_worm_tail(mon)) { + || Detect_monsters)) { /* Monsters are printed every time. */ /* This also gets rid of any invisibility glyph */ - display_monster(x, y, mon, see_it ? 0 : DETECTED, 0); + display_monster(x, y, mon, see_it ? 0 : DETECTED, is_worm_tail(mon) ? TRUE : FALSE); } else if ((mon = m_at(x, y)) && mon_warning(mon) && !is_worm_tail(mon)) { display_warning(mon);