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:
@@ -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. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -1687,7 +1687,7 @@ glibr()
|
|||||||
xfl++;
|
xfl++;
|
||||||
wastwoweap = TRUE;
|
wastwoweap = TRUE;
|
||||||
setuswapwep((struct obj *)0); /* clears u.twoweap */
|
setuswapwep((struct obj *)0); /* clears u.twoweap */
|
||||||
if (otmp->otyp != LOADSTONE || !otmp->cursed)
|
if (canletgo(otmp, ""))
|
||||||
dropx(otmp);
|
dropx(otmp);
|
||||||
}
|
}
|
||||||
otmp = uwep;
|
otmp = uwep;
|
||||||
@@ -1720,7 +1720,7 @@ glibr()
|
|||||||
/* xfl++; */
|
/* xfl++; */
|
||||||
otmp->quan = savequan;
|
otmp->quan = savequan;
|
||||||
setuwep((struct obj *)0);
|
setuwep((struct obj *)0);
|
||||||
if (otmp->otyp != LOADSTONE || !otmp->cursed)
|
if (canletgo(otmp, ""))
|
||||||
dropx(otmp);
|
dropx(otmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user