From 159b29a85ba10339149986fcb66039d5ec80f7fa Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 5 Jun 2015 06:36:00 -0400 Subject: [PATCH] ensure dummy obj owornmask is clear (from Alex) Another minor oddity (did not have time to trace it). Charges for damaged weapon refer to it as "weapon in hand": -- As you read the scroll, it disappears. Being confused, you mispronounce the magic words... Demirci's long sword is covered by a mottled purple glow! "You degrade that long sword, you pay for it!" Call a scroll labeled VERR YED HORRE: What do you want to wield? [- ajrw or ?*] j j - a rustproof athame named Magicbane (weapon in hand) (10 aum). What do you want to drop? [$a-df-rtwxM or ?*] r You drop a long sword (40 aum). Demirci offers 8 gold pieces for your long sword. Sell it? [ynaq] (y) y You sold a long sword (40 aum) for 8 gold pieces. You see here a scale mail (250 aum). You see here a ring mail (250 aum). A rustproof long sword (weapon in hand) (40 aum) for 15 zorkmids. Pay? [yn] (n) You paid for a rustproof long sword (weapon in hand) (40 aum) at a cost of 15 gold pieces. "Thank you for shopping in Demirci's used armor dealership!" -- --- src/mkobj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mkobj.c b/src/mkobj.c index 337d6d9fe..16c839ffc 100644 --- a/src/mkobj.c +++ b/src/mkobj.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 mkobj.c $NHDT-Date: 1432512771 2015/05/25 00:12:51 $ $NHDT-Branch: master $:$NHDT-Revision: 1.101 $ */ +/* NetHack 3.6 mkobj.c $NHDT-Date: 1433500549 2015/06/05 10:35:49 $ $NHDT-Branch: master $:$NHDT-Revision: 1.102 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -520,6 +520,7 @@ register struct obj *otmp; free_omid(dummy); /* only one association with m_id*/ if (Is_candle(dummy)) dummy->lamplit = 0; + dummy->owornmask = 0L; /* dummy object is not worn */ addtobill(dummy, FALSE, TRUE, TRUE); if (cost) alter_cost(dummy, -cost);