From: Pasi Kallinen Date: Sat, 8 Feb 2020 15:00:03 +0000 (+0200) Subject: Fix digging through iron bars from adjacent pit X-Git-Tag: NetHack-3.7.0_WIP-2020-02-14~48^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e4319824d07fbadcbd4bde15afb949fc598fc5c;p=nethack Fix digging through iron bars from adjacent pit It was possible to create a pit on top of iron bars, by first creating a pit next to the bars, going down into the pit, and then digging sideways towards the bars. This did not destroy the iron bars. --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 4454b3eee..14bd14419 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -52,6 +52,7 @@ poly'd hero was able to zap wands, apply tools, and #rub objects without having any hands spellcasting monster got an extra move after casting allow defining #wizgenesis quantity in the prompt +digging through iron bars from an adjacent pit made a pit on top of the bars Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/dig.c b/src/dig.c index e86eb5eef..7d61f687d 100644 --- a/src/dig.c +++ b/src/dig.c @@ -1635,6 +1635,7 @@ char *msg; } else if (ltyp == IRONBARS) { /* "set of iron bars" */ Strcpy(msg, "The bars go much deeper than your pit."); + return FALSE; #if 0 } else if (is_lava(cc->x, cc->y)) { } else if (is_ice(cc->x, cc->y)) {