From: Pasi Kallinen Date: Thu, 12 Nov 2015 22:07:43 +0000 (+0200) Subject: Clear thrownobj when punished and swallowed X-Git-Tag: NetHack-3.6.0_RC01~54^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4387bde9689c67f270987a5df93f62fe975378fa;p=nethack Clear thrownobj when punished and swallowed As per Pat's suggestion, this actually does work correctly; I have no idea why I thought it didn't ... --- diff --git a/src/dothrow.c b/src/dothrow.c index 7c83a6247..8de02854d 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -1161,10 +1161,9 @@ boolean ; /* missile has already been handled */ } else if (u.uswallow) { /* ball is not picked up by monster */ - if (obj != uball) { + if (obj != uball) (void) mpickobj(u.ustuck, obj); - thrownobj = (struct obj *) 0; - } + thrownobj = (struct obj *) 0; } else { /* the code following might become part of dropy() */ if (obj->oartifact == ART_MJOLLNIR && Role_if(PM_VALKYRIE)