]> granicus.if.org Git - nethack/commit
fix bz623 - 'D' when not carrying anything
authorPatR <rankin@nethack.org>
Fri, 2 Sep 2016 09:38:10 +0000 (02:38 -0700)
committerPatR <rankin@nethack.org>
Fri, 2 Sep 2016 09:38:10 +0000 (02:38 -0700)
commitff817b55e1626e64e757a9626782827161144aa8
treef4c2dc73cffa838fbffeb7b27f09c0d069ef0845
parent05ca204ae454ddb143c8fb36779ebbc55e072038
fix bz623 - 'D' when not carrying anything

With menustyle set to "full" or "partial", using 'D' when not
carrying anything gave no feedback.  (Modes "traditional" and
"combination" give "you have nothing to drop" via ggetobj().)

Also, there's no need to reset in-progress armor removal, lock
picking, or trap setting if you don't actually drop anything.
The inventory they're set to operate on or with stays intact.
doc/fixes36.1
src/do.c
src/invent.c