more wielded, in-use leash

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
This commit is contained in:
nethack.rankin
2007-02-18 03:24:58 +00:00
parent 7abf238f1b
commit 12cb6f5afe

View 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);
}
}