]> granicus.if.org Git - nethack/commit
shop gold vs hangup
authornethack.rankin <nethack.rankin>
Sun, 18 Nov 2007 19:52:44 +0000 (19:52 +0000)
committernethack.rankin <nethack.rankin>
Sun, 18 Nov 2007 19:52:44 +0000 (19:52 +0000)
commit645461d7504632780e546fcd4c8ea5f8938b01c0
treeebb70076b9109e41fc978ffd493a58dd513bc950
parent44c1677ac1ab7e2bbb3916a5bfe147139e44b212
shop gold vs hangup

     From the newsgroup:  hangup save while picking up gold from the
floor in a shop would duplicate that gold in the save file.  First the
gold amount was being added to hero's gold, then two messages were given
[pline() or prinv() about pickup followed by one from costly_gold() about
shop credit], and lastly the floor gold would be removed.  The second
message could trigger --More-- and provide a controllable interruption
point between giving the gold to the hero and removing it from the floor.
Change this to do the removal step before feedback.
doc/fixes34.4
src/pickup.c