]> granicus.if.org Git - nethack/commitdiff
more wielded, in-use leash
authornethack.rankin <nethack.rankin>
Sun, 18 Feb 2007 03:24:58 +0000 (03:24 +0000)
committernethack.rankin <nethack.rankin>
Sun, 18 Feb 2007 03:24:58 +0000 (03:24 +0000)
     Slippery fingers would cause a wielded, in-use leash to be dropped
without first unleashing.  The fixes entry for the polyself case applies
to this one too:
dropped wielded, in use leash should remain in inventory, since it's in-use

src/do_wear.c

index 9b0090cdd30c773c66a2c873adc5eafdf2422899..30f242b85e43b4b9518721eac101878aad8a5e30 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)do_wear.c  3.5     2006/11/27      */
+/*     SCCS Id: @(#)do_wear.c  3.5     2007/02/17      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -1687,7 +1687,7 @@ glibr()
                xfl++;
                wastwoweap = TRUE;
                setuswapwep((struct obj *)0);   /* clears u.twoweap */
-               if (otmp->otyp != LOADSTONE || !otmp->cursed)
+               if (canletgo(otmp, ""))
                        dropx(otmp);
        }
        otmp = uwep;
@@ -1720,7 +1720,7 @@ glibr()
             /* xfl++; */
                otmp->quan = savequan;
                setuwep((struct obj *)0);
-               if (otmp->otyp != LOADSTONE || !otmp->cursed)
+               if (canletgo(otmp, ""))
                        dropx(otmp);
        }
 }