Add missing thrownobj clears when the obj is destroyed
This commit is contained in:
@@ -1231,10 +1231,13 @@ boolean
|
|||||||
tmp_at(DISP_END, 0);
|
tmp_at(DISP_END, 0);
|
||||||
breakmsg(obj, cansee(bhitpos.x, bhitpos.y));
|
breakmsg(obj, cansee(bhitpos.x, bhitpos.y));
|
||||||
breakobj(obj, bhitpos.x, bhitpos.y, TRUE, TRUE);
|
breakobj(obj, bhitpos.x, bhitpos.y, TRUE, TRUE);
|
||||||
|
thrownobj = (struct obj *) 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (flooreffects(obj, bhitpos.x, bhitpos.y, "fall"))
|
if (flooreffects(obj, bhitpos.x, bhitpos.y, "fall")) {
|
||||||
|
thrownobj = (struct obj *) 0;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
obj_no_longer_held(obj);
|
obj_no_longer_held(obj);
|
||||||
if (mon && mon->isshk && is_pick(obj)) {
|
if (mon && mon->isshk && is_pick(obj)) {
|
||||||
if (cansee(bhitpos.x, bhitpos.y))
|
if (cansee(bhitpos.x, bhitpos.y))
|
||||||
|
|||||||
Reference in New Issue
Block a user