more engraving sanity feedback
Delete engravings made in a breach of a shop's wall or of a vault's wall or in the guard's temporary corridor when the wall is repaired or the corridor removed. If 'sanity_check' was On, those would trigger impossible warning "engraving sanity: illegal surface (x)" where x was the terrain type code for solid rock or relevant walls. Adding del_engr_at() calls to the shop code was straightforward. The vault code is very complicated and I'm not sure that all the calls I added were actually necessary.
This commit is contained in:
@@ -4074,6 +4074,7 @@ repair_damage(
|
||||
break;
|
||||
}
|
||||
deltrap(ttmp);
|
||||
del_engr_at(x, y);
|
||||
if (seeit)
|
||||
newsym(x, y);
|
||||
if (!catchup)
|
||||
@@ -4100,6 +4101,7 @@ repair_damage(
|
||||
|
||||
if (litter_getpos(litter, x, y, shkp))
|
||||
litter_scatter(litter, x, y, shkp);
|
||||
del_engr_at(x, y);
|
||||
|
||||
/* needed if hero has line-of-sight to the former gap from outside
|
||||
the shop but is farther than one step away; once the light inside
|
||||
|
||||
Reference in New Issue
Block a user