]> granicus.if.org Git - nethack/commit
minimal_xname() fix (trunk only)
authornethack.rankin <nethack.rankin>
Tue, 17 Jul 2007 13:35:54 +0000 (13:35 +0000)
committernethack.rankin <nethack.rankin>
Tue, 17 Jul 2007 13:35:54 +0000 (13:35 +0000)
commit65905e6ce993805ecd267991d5b50e6210780e14
tree99577cc3e765f0aaa1b3ed0542701fc0dc969f3e
parentf17e97bac604e0fcb9fe39dd07b08e1600aba865
minimal_xname() fix (trunk only)

     ansimpleoname() and siblings always reported statue and figurine
type to be "of a giant ant" because the corpsenm field was left as 0.
Explicitly set it to -1 in the minimal object and teach xname() to leave
off the monster type in that situation, yielding just "a statue" or "a
figurine".  [It's tempting to classify this as an xname() bug since other
object types which use corpsenm do so in doname().]  No fixes entry; this
is post-3.4.3 code.
src/objnam.c