]> granicus.if.org Git - nethack/commit
dropping unpaid items vs containers (trunk only)
authornethack.rankin <nethack.rankin>
Sat, 28 Mar 2009 01:36:12 +0000 (01:36 +0000)
committernethack.rankin <nethack.rankin>
Sat, 28 Mar 2009 01:36:12 +0000 (01:36 +0000)
commit1ab038dca5e4228668b15f5001b301c81358ac35
treeb67d777fc353c9f30758ba5bddde5f1a669b1079
parentb8b8a65dfb22af57eeaa5655913d002f0191d97b
dropping unpaid items vs containers (trunk only)

     From a bug report, the 'D'
command would list 'u' as an item category choice if you were carrying
unpaid items inside a container, but if those were the only unpaid items
then nothing would happen once the dropping stage was reached.  Applied
to all menustyles (except partial, which bypasses categories and goes
straight to a menu listing all items).  There were two alternatives for
the fix:  suppress 'u' as an applicable category when it only applies
to container contents, or include the container among the drop candidates
even though it isn't an unpaid item itself.  I went with the latter; it's
simpler to implement and also feels a little more intuitive than behaving
like there aren't any unpaid items present.
doc/fixes35.0
src/invent.c
src/pickup.c