]> granicus.if.org Git - nethack/commit
Credit/debit gold in containers even in sellobj_state SELL_DONTSELL
authorTung Nguyen <tungtn3@gmail.com>
Wed, 9 Mar 2016 03:55:02 +0000 (14:55 +1100)
committerTung Nguyen <tungtn3@gmail.com>
Fri, 11 Mar 2016 07:35:26 +0000 (18:35 +1100)
commit8ccdea6d8dade3a792c3a90a12f0f8f6a63856a3
tree4bf12440a49c31658219186096b631218120e1da
parent6e8da58cd04ba9562f462b6bbb819e7f75c00b93
Credit/debit gold in containers even in sellobj_state SELL_DONTSELL

There's no capacity for the shop logic to handle gold without also
changing the credit/debit within it, so gold must always be handled in
`sellobj()`, even when the state of it is set to `SELL_DONTSELL`.

This is needed for an upcoming bug fix.

Based on DynaHack commit b0784c5 (Credit/debit gold in containers even
in sellobj_state SELL_DONTSELL) by me.
src/shk.c