fix #H7136 - iron bars vs non-diggable walls
Iron bars can be destroyed in some circumstances (hit by yellow dragon breath or thrown potion of acid, being eaten by rust monser or black pudding, or by poly'd hero in those forms) and should act like walls for diggable/non-diggable purposes. But they aren't walls, so the non-diggable flag was not being set for them by the special level loader. Even once that was changed, they weren't being handled consistently. Some places checked for non-diggable directly (zap_over_floor of acid breath, potion of acid hitting bars) and started working as intended, others used may_dig() to check non-diggable (poly'd hero attempting to eat iron bars) but it doesn't handle iron bars, and still others didn't check at all (bars-eating monster who moved onto bars location in expectation of eating those next).
This commit is contained in:
@@ -381,7 +381,7 @@ extern struct symsetentry symset[NUM_GRAPHICS]; /* from drawing.c */
|
||||
#define DB_UNDER 28 /* mask for underneath */
|
||||
|
||||
/*
|
||||
* Wall information.
|
||||
* Wall information. Nondiggable also applies to iron bars.
|
||||
*/
|
||||
#define WM_MASK 0x07 /* wall mode (bottom three bits) */
|
||||
#define W_NONDIGGABLE 0x08
|
||||
|
||||
Reference in New Issue
Block a user