]> granicus.if.org Git - nethack/commitdiff
bribe fix for GOLDOBJ
authornethack.rankin <nethack.rankin>
Thu, 24 Jan 2002 00:39:56 +0000 (00:39 +0000)
committernethack.rankin <nethack.rankin>
Thu, 24 Jan 2002 00:39:56 +0000 (00:39 +0000)
src/minion.c

index f9865d095887812878e82a5b46848694e4387724..3d8f56ee8ce8630229160e14747577c107cf281b 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)minion.c   3.3     2000/09/14      */
+/*     SCCS Id: @(#)minion.c   3.3     2002/01/23      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -178,9 +178,10 @@ struct monst *mtmp;
        if (offer < 0L) {
                You("try to shortchange %s, but fumble.",
                        mon_nam(mtmp));
-               offer = 0L;
+               return 0L;
        } else if (offer == 0L) {
                You("refuse.");
+               return 0L;
 #ifndef GOLDOBJ
        } else if (offer >= u.ugold) {
                You("give %s all your gold.", mon_nam(mtmp));
@@ -197,7 +198,7 @@ struct monst *mtmp;
        } else You("give %s %ld %s.", mon_nam(mtmp), offer,
                   currency(offer));
 
-        money2mon(mtmp, offer);
+       money2mon(mtmp, offer);
 #endif
        flags.botl = 1;
        return(offer);