U77 - pits in drawbridges

dighole dealt with holes in drawbridges, but digactualhole did not
This commit is contained in:
cohrs
2002-10-19 18:42:46 +00:00
parent 7411e1daf5
commit 1469d772ff
2 changed files with 8 additions and 0 deletions

View File

@@ -504,6 +504,13 @@ int ttyp;
breaksink(x, y);
return;
#endif
} else if (lev->typ == DRAWBRIDGE_DOWN ||
(is_drawbridge_wall(x, y) >= 0)) {
int bx = x, by = y;
/* if under the portcullis, the bridge is adjacent */
(void) find_drawbridge(&bx, &by);
destroy_drawbridge(bx, by);
return;
}
if (ttyp != PIT && !Can_dig_down(&u.uz)) {