]> granicus.if.org Git - nethack/commit
Eyes of the Overworld grammar
authornethack.rankin <nethack.rankin>
Thu, 18 May 2006 02:38:16 +0000 (02:38 +0000)
committernethack.rankin <nethack.rankin>
Thu, 18 May 2006 02:38:16 +0000 (02:38 +0000)
commita232123d8cb035f9b8fbc5301127847f314060dd
tree049c885b3c899732e7a52130f250b5b5e66d8762
parenta6c608403b0e667b145b367d51f0ed8a66dfe074
Eyes of the Overworld grammar

     Putting on the Eyes while blind causes sight to be regained, which in
turn causes xname() to set the dknown bit and start using the previously
unseen object's name.  But obj_is_pname() was being called before xname in
the "you are now wearing ..." message, while dknown was still clear.  So
obj_is_pname thought the name was being suppressed and returned false,
resulting in "an Eyes" instead of "the Eyes".  Fix is to call xname first.
doc/fixes34.4
src/do_wear.c