]> granicus.if.org Git - nethack/commit
fix pull request #469 - multiple '$' invent slots
authorPatR <rankin@nethack.org>
Tue, 16 Mar 2021 19:29:22 +0000 (12:29 -0700)
committerPatR <rankin@nethack.org>
Tue, 16 Mar 2021 19:29:22 +0000 (12:29 -0700)
commitc3ccd93a88d88228c20997ae9e40906a8dd68733
tree3e467823fd47c3da97aa0929e418e98f08fc4778
parentc6e6d65e43ea326ea49e8acee7bbc29fce3de1dc
fix pull request #469 - multiple '$' invent slots

Assigning a partial stack of gold to quiver (Qnn$) resulted in
an extra '$' slot in inventory, one for the unquivered part and
another for the quivered part.

Throwing a non-quivered partial stack of gold at self (tnn$.)
also resulted in an extra '$' slot after throwing at self was
rejected.

For the first case, reject the quiver-subset-of-gold attempt.
For both cases, recombine the two stacks back to original amount.

Fixes #469
doc/fixes37.0
src/dothrow.c
src/wield.c