From 0490f7736cf966b82b542402cf4de25f7dfebb1c Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 31 May 2024 07:46:52 +0300 Subject: [PATCH] Fix couple cases of boulders over pits When a zombie claws itself out of the ground. When a polymorph is zapped on a pile of objects over a pit, and one of them turns into a boulder. --- src/do.c | 1 + src/zap.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/do.c b/src/do.c index ec05c5fc1..779e7eca3 100644 --- a/src/do.c +++ b/src/do.c @@ -2185,6 +2185,7 @@ revive_corpse(struct obj *corpse) Soundeffect(se_scratching, 50); You_hear("scratching noises."); } + fill_pit(mtmp->mx, mtmp->my); break; } /*FALLTHRU*/ diff --git a/src/zap.c b/src/zap.c index 0cea56935..4d2ae0036 100644 --- a/src/zap.c +++ b/src/zap.c @@ -2450,6 +2450,8 @@ bhitpile( if (hidingunder) /* pile might have been destroyed or dispersed */ maybe_unhide_at(tx, ty); + fill_pit(tx, ty); + return hitanything; }