]> granicus.if.org Git - nethack/commit
shop credit fix
authornethack.rankin <nethack.rankin>
Mon, 15 Apr 2002 10:52:20 +0000 (10:52 +0000)
committernethack.rankin <nethack.rankin>
Mon, 15 Apr 2002 10:52:20 +0000 (10:52 +0000)
commit43e65726f77c28ca85fbb1b9337b956b606b700b
treefb902471309ba7f47d125491a20d8fa4e920ee7b
parentd3078778ebcf71b5ddc67054368dac400ddff380
shop credit fix

[ Fix a bug reported in the newsgroup; I thought I sent this last
  week, but it isn't in the current code so I must have forgotten. ]

     When I split u_left_shop() into two routines I neglected to
propagate the early return condition from the second half to the
first.  The result is that if you leave a shop with unpaid goods
but have enough credit there to cover the cost, the shopkeeper
will take that credit and be satisified, but the kops were still
getting summoned as if he had been robbed.
doc/fixes34.1
src/shk.c