Fix iron bars dissolving turning floor into doorway

This commit is contained in:
Pasi Kallinen
2023-11-04 13:41:12 +02:00
parent 738c2239c9
commit 2bb7239867
2 changed files with 4 additions and 10 deletions

View File

@@ -1964,8 +1964,9 @@ can_hide_under_obj(struct obj *obj)
void
dissolve_bars(coordxy x, coordxy y)
{
levl[x][y].typ = (Is_special(&u.uz) || *in_rooms(x, y, 0)) ? ROOM : CORR;
levl[x][y].flags = 0;
levl[x][y].typ = (levl[x][y].edge == 1) ? DOOR
: (Is_special(&u.uz) || *in_rooms(x, y, 0)) ? ROOM : CORR;
levl[x][y].flags = 0; /* doormask = D_NODOOR */
newsym(x, y);
if (u_at(x, y))
switch_terrain();