From 4387bde9689c67f270987a5df93f62fe975378fa Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 13 Nov 2015 00:07:43 +0200 Subject: [PATCH] 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 ... --- src/dothrow.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)