]> granicus.if.org Git - nethack/commit
look vs pickup
authornethack.allison <nethack.allison>
Sun, 1 Jun 2003 15:54:41 +0000 (15:54 +0000)
committernethack.allison <nethack.allison>
Sun, 1 Jun 2003 15:54:41 +0000 (15:54 +0000)
commitf65a13cfbe790fac8d347e83ce4ff9002d98a37b
treea3d66af3de09ac00c2fb4fa4ab39afef882229f1
parentbc2215268b86ebb6dd8aa96197656e05d4440407
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.
include/extern.h
include/hack.h
src/invent.c
src/pickup.c