]> granicus.if.org Git - nethack/commitdiff
Fix digging through iron bars from adjacent pit
authorPasi Kallinen <paxed@alt.org>
Sat, 8 Feb 2020 15:00:03 +0000 (17:00 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 8 Feb 2020 15:08:17 +0000 (17:08 +0200)
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.

doc/fixes37.0
src/dig.c

index 4454b3eeef97ba64a304ec5310ee0ecbb0a3f16d..14bd14419846b47be5d6f8981add67d8a9efca51 100644 (file)
@@ -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
index e86eb5eefc4d92a7cc5f07de885fbc1521880614..7d61f687d2b25dd752eff2cdd1b3ec50ca3fe44a 100644 (file)
--- 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)) {