]> granicus.if.org Git - nethack/commitdiff
fix recent gold drop fix (trunk only)
authornethack.rankin <nethack.rankin>
Fri, 30 Nov 2007 07:11:59 +0000 (07:11 +0000)
committernethack.rankin <nethack.rankin>
Fri, 30 Nov 2007 07:11:59 +0000 (07:11 +0000)
     A recent change to prevent dropping 2**32 gold from producing an
object with quanity 0 also prevented dropping all your gold when omitting
a count.

src/invent.c

index 4b3877945c6358d84793b818854776a03c0c0604..87a6e96a1ce2fd88e51a0a73273e55a3f21b7b78 100644 (file)
@@ -1083,7 +1083,7 @@ register const char *let,*word;
                         * to your money supply.  The LRS is the tax bureau
                         * from Larn.
                         */
-                       if (cnt <= 0) {
+                       if (allowcnt == 2 && cnt <= 0) {
                            if (cnt < 0 || !prezero)
                                pline_The(
                  "LRS would be very interested to know you have that much.");