From 8a3c5a621fd0b1c9440b0b05834dc2daedad9188 Mon Sep 17 00:00:00 2001 From: cohrs Date: Wed, 27 Mar 2002 04:58:42 +0000 Subject: [PATCH] Sunsword kept glowing after monster wielding it died - reported this bug to the mailing list - add a check in relobj(), which should catch all the cases --- doc/fixes34.1 | 1 + src/steal.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 17c752ace..e1df29416 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -22,6 +22,7 @@ discovering a mimic on a closed door location should not unblock the location don't drop corpse when a monster kills another monster on an inaccessible location (i.e. behave like xkilled behaves) half-physical-damage from gas spore explosion should only affect you +Sunsword didn't stop glowing when hero killed a monster wielding it Platform- and/or Interface-Specific Fixes diff --git a/src/steal.c b/src/steal.c index c020b2e35..dcff3a41c 100644 --- a/src/steal.c +++ b/src/steal.c @@ -543,6 +543,8 @@ boolean is_pet; /* If true, pet should keep wielded/worn items */ costly_spot(mtmp->mx, mtmp->my)) otmp->no_charge = 1; #endif + if (otmp->owornmask & W_WEP) + setmnotwielded(mtmp, otmp); otmp->owornmask = 0L; } if (is_pet && cansee(omx, omy) && flags.verbose)