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.
This commit is contained in:
nethack.rankin
2006-05-18 02:38:16 +00:00
parent a6c608403b
commit a232123d8c
2 changed files with 9 additions and 5 deletions

View File

@@ -220,6 +220,7 @@ create_object() created lizard corpses without timers and troll corpses with
when a potion of acid was dropped into water and exploded, nethack would
continue to use already freed memory and later might panic or crash
when jumping over an already seen trap, use an() to get appropriate grammar
fix bad grammar when putting on not-yet-seen Eyes of the Overworld while blind
Platform- and/or Interface-Specific Fixes