]> granicus.if.org Git - nethack/commitdiff
buglist followup to pacifying a shopkeeper
authorcohrs <cohrs>
Fri, 12 Sep 2003 20:08:44 +0000 (20:08 +0000)
committercohrs <cohrs>
Fri, 12 Sep 2003 20:08:44 +0000 (20:08 +0000)
Quoting the buglist: "If shk.c does get modified, I'd
like to see a call to rouse_shk() added at the start of rob_shop().
If the shk wakes up for buying and selling, he ought to wake up for
robbery--even when it's covered by the customer's credit--too."

src/shk.c

index 32568d3dd165d023ac4377f302e0c412b224c6cb..acef77df53e1284de60a4e1290c9666e7a9bfe60 100644 (file)
--- a/src/shk.c
+++ b/src/shk.c
@@ -461,6 +461,7 @@ struct monst *shkp;
        long total;
 
        eshkp = ESHK(shkp);
+       rouse_shk(shkp, TRUE);
        total = (addupbill(shkp) + eshkp->debit);
        if (eshkp->credit >= total) {
            Your("credit of %ld %s is used to cover your shopping bill.",