]> granicus.if.org Git - nethack/commit
kinda/sorta fix github issue #246
authorPatR <rankin@nethack.org>
Thu, 5 Dec 2019 10:33:47 +0000 (02:33 -0800)
committerPatR <rankin@nethack.org>
Thu, 5 Dec 2019 10:33:47 +0000 (02:33 -0800)
commit565e020573d56afb3eefafa4e8975d24b677c80d
tree769f1dc1fb4f351cfe3327d648b182e0cc3a8c1c
parent3e0b4e0b5a7f2a328b10f19a7e8183335e687794
kinda/sorta fix github issue #246

When picking up from floor or removing from container fails because
there aren't any inventory slots available, pickup/take-out stops.
But the message
|Your knapsack can't accomodate any more items.
is inaccurate if there is gold beyond the stopping point.  Actually
continuing in order to pickup/take-out gold would require substantial
changes, but varying the message to be
|Your knapsack can't accomodate any more items (except gold).
when stopping is a one line fix.  The parenthesized remark is only
added if there is actually some gold after the current object and is
given regardless of whether autopickup happens to be targetting it.

Fixes #246
doc/fixes37.0
src/pickup.c