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:
Pasi Kallinen
2023-05-11 15:49:59 +03:00
parent fcb86ad709
commit 8c8acee423

View File

@@ -253,6 +253,8 @@ flooreffects(struct obj *obj, coordxy x, coordxy y, const char *verb)
deletedwithboulder:
if ((t = t_at(x, y)) != 0)
deltrap(t);
if (u.utrap && u_at(x, y))
reset_utrap(FALSE);
useupf(obj, 1L);
bury_objs(x, y);
newsym(x, y);