Fix hero trapped in nonexistent pit
If hero was trapped in a pit, and a monster threw a boulder at that location, the boulder filled the pit but hero was still trapped in it.
This commit is contained in:
@@ -253,6 +253,8 @@ flooreffects(struct obj *obj, coordxy x, coordxy y, const char *verb)
|
|||||||
deletedwithboulder:
|
deletedwithboulder:
|
||||||
if ((t = t_at(x, y)) != 0)
|
if ((t = t_at(x, y)) != 0)
|
||||||
deltrap(t);
|
deltrap(t);
|
||||||
|
if (u.utrap && u_at(x, y))
|
||||||
|
reset_utrap(FALSE);
|
||||||
useupf(obj, 1L);
|
useupf(obj, 1L);
|
||||||
bury_objs(x, y);
|
bury_objs(x, y);
|
||||||
newsym(x, y);
|
newsym(x, y);
|
||||||
|
|||||||
Reference in New Issue
Block a user