look vs pickup

I encountered a look vs pickup cockatrice corpse
bug today.

If you looked at a location with ':', you
would instantly get
"Touching the cockatrice corpse is a fatal mistake..."
but if you used "m," you got the full list of
things at the location to choose from.

This patch makes the behaviour consistent
and more informative to the player.
You now get the partial list of things felt
up until the cockatrice corpse is encountered,
and then you get the
"Touching the cockatrice corpse is a fatal mistake..."

Before, the code was never displaying the partially
built list because the feel_cockatrice() call was
happening before the window display call.
This commit is contained in:
nethack.allison
2003-06-01 15:54:41 +00:00
parent bc2215268b
commit f65a13cfbe
4 changed files with 36 additions and 8 deletions

View File

@@ -150,6 +150,7 @@ NEARDATA extern coord bhitpos; /* place where throw or zap hits or stops */
#define USE_INVLET 0x4 /* use object's invlet */
#define INVORDER_SORT 0x8 /* sort objects by packorder */
#define SIGNAL_NOMENU 0x10 /* return -1 rather than 0 if none allowed */
#define FEEL_COCKATRICE 0x20 /* engage cockatrice checks and react */
/* Flags to control query_category() */
/* BY_NEXTHERE used by query_category() too, so skip 0x01 */