]> granicus.if.org Git - nethack/commit
m_monnam() usage
authorPatR <rankin@nethack.org>
Sun, 4 Jun 2017 23:32:17 +0000 (16:32 -0700)
committerPatR <rankin@nethack.org>
Sun, 4 Jun 2017 23:32:17 +0000 (16:32 -0700)
commitc377b584fcb28113234f513b097e0998bbf27bd2
tree3aa6864ac33b0afc8e86c19c13d9a8324fdc45aa
parent3046b1d7ecd9bbf70c0134d5feeaef76e00dc4b5
m_monnam() usage

m_monnam() overrides hallucination, which is appropriate in some
situations but not others.  This fixes one instance where it was
being misused:  discovering a hidden monster when another monster
attacks it was calling either m_monnam() or a_monnam(); one ignores
hallucination and the other doesn't, so accurate or inaccurate
monster type depended on the condition tested.

Figurine activation and egg hatching are using m_monnam(), which
seems suspect, but I left them as is.
src/apply.c
src/hack.c
src/mhitm.c
src/mhitu.c
src/timeout.c