Skip to content

Commit

Permalink
more wielded, in-use leash
Browse files Browse the repository at this point in the history
     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
  • Loading branch information
nethack.rankin committed Feb 18, 2007
1 parent 7abf238 commit 12cb6f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/do_wear.c
Original file line number Diff line number Diff line change
@@ -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. */

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1720,7 +1720,7 @@ glibr()
/* xfl++; */
otmp->quan = savequan;
setuwep((struct obj *)0);
if (otmp->otyp != LOADSTONE || !otmp->cursed)
if (canletgo(otmp, ""))
dropx(otmp);
}
}
Expand Down

0 comments on commit 12cb6f5

Please sign in to comment.