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.
This commit is contained in:
nethack.rankin
2007-11-18 19:52:44 +00:00
parent 44c1677ac1
commit 645461d750
2 changed files with 5 additions and 4 deletions

View File

@@ -366,6 +366,7 @@ could get "suddenly you cannot see the <mon>" while invisible mon remained
cutting a long worm in half would trigger segfault/accvio crash if the hit
took parent down to 1 hit point or if long worms had become extinct
blinded invisible hero can't see self as invisible via ';' or '/'
a hangup save while picking up gold from shop floor could duplicate that gold
Platform- and/or Interface-Specific Fixes