From: cohrs Date: Mon, 20 May 2002 05:03:13 +0000 (+0000) Subject: R883 - disappearing thrown money X-Git-Tag: MOVE2GIT~2739 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0cef1a0e2c6dec5769c93f9917420bf1359cf60;p=nethack R883 - disappearing thrown money this is a !GOLDOBJ bug, the money was not put back into ugold in this case when it was not thrown --- diff --git a/doc/fixes34.1 b/doc/fixes34.1 index f9249e4a6..fe15ecbf7 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -108,6 +108,7 @@ avoid double billing if #loot causes a shop's bag of holding to explode when polymorphed, player killing a paper or straw golem via fire damage would kill the golem twice, resulting in an impossible error usually stop mimicing if you polymorph while using #monster mimic capability +under !GOLDOBJ, gold shouldn't disappear if you try to throw it at yourself Platform- and/or Interface-Specific Fixes diff --git a/src/dothrow.c b/src/dothrow.c index 8cc555036..34311ae54 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -1633,6 +1633,11 @@ struct obj *obj; register struct monst *mon; if(!u.dx && !u.dy && !u.dz) { +#ifndef GOLDOBJ + u.ugold += obj->quan; + flags.botl = 1; + dealloc_obj(obj); +#endif You("cannot throw gold at yourself."); return(0); }