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
This commit is contained in:
cohrs
2002-05-20 05:03:13 +00:00
parent d62c6eac08
commit b0cef1a0e2
2 changed files with 6 additions and 0 deletions

View File

@@ -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 when polymorphed, player killing a paper or straw golem via fire damage
would kill the golem twice, resulting in an impossible error would kill the golem twice, resulting in an impossible error
usually stop mimicing if you polymorph while using #monster mimic capability 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 Platform- and/or Interface-Specific Fixes

View File

@@ -1633,6 +1633,11 @@ struct obj *obj;
register struct monst *mon; register struct monst *mon;
if(!u.dx && !u.dy && !u.dz) { 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."); You("cannot throw gold at yourself.");
return(0); return(0);
} }