From 8c8acee423fa5a5f793b5b06105387a12a52f01b Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 11 May 2023 15:49:59 +0300 Subject: [PATCH] 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. --- src/do.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/do.c b/src/do.c index 45dd251ed..1e2729f39 100644 --- a/src/do.c +++ b/src/do.c @@ -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);