obj_no_longer_held consistency

Call obj_no_longer_held whenever an object hits the floor, no matter what
previously held it.  Also handle stoning of prior holder.
This commit is contained in:
cohrs
2002-02-09 21:55:45 +00:00
parent 38d84ba3c8
commit 316a94d50f
7 changed files with 30 additions and 17 deletions

View File

@@ -1488,6 +1488,7 @@ register struct monst *mdef;
/* some objects may end up outside the statue */
while ((obj = mdef->minvent) != 0) {
obj_extract_self(obj);
obj_no_longer_held(obj);
if (obj->owornmask & W_WEP)
setmnotwielded(mdef,obj);
obj->owornmask = 0L;