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.
This commit is contained in:
Pasi Kallinen
2020-02-08 17:00:03 +02:00
parent d02bf5d1d0
commit 9e4319824d
2 changed files with 2 additions and 0 deletions

View 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

View File

@@ -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)) {