Monster detection shows pets with the correct glyph
Make pets hilited when detected with uncursed potion of monster detection and hilite_pet is on. Noticed by Raisse.
This commit is contained in:
@@ -465,8 +465,10 @@ boolean use_detection_glyph;
|
||||
|
||||
while (curr != wheads[worm->wormno]) {
|
||||
num = use_detection_glyph
|
||||
? detected_monnum_to_glyph(what_mon(PM_LONG_WORM_TAIL))
|
||||
: monnum_to_glyph(what_mon(PM_LONG_WORM_TAIL));
|
||||
? detected_monnum_to_glyph(what_mon(PM_LONG_WORM_TAIL))
|
||||
: (worm->mtame
|
||||
? petnum_to_glyph(what_mon(PM_LONG_WORM_TAIL))
|
||||
: monnum_to_glyph(what_mon(PM_LONG_WORM_TAIL)));
|
||||
show_glyph(curr->wx, curr->wy, num);
|
||||
curr = curr->nseg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user