HORWALL
ch = HORWALL;
} while (!(dungeon[*row][*col] & (HORWALL | TUNNEL)));
if (mask & (TUNNEL | STAIRS | HORWALL | VERTWALL | FLOOR | DOOR)) {
if (mask & HORWALL) {
if (((col > 0) && (dungeon[row][col-1] & HORWALL)) ||
((col < (DCOLS-1)) && (dungeon[row][col+1] & HORWALL))) {
unsigned short mask = (HORWALL | VERTWALL | DOOR | TUNNEL | TRAP | STAIRS |
if (s & HORWALL) {
((dungeon[*row][*col] & (HORWALL | VERTWALL | HIDDEN)) &&
(dungeon[*row][*col] & (HORWALL | VERTWALL)) ||
(dungeon[orow][ocol] & (HORWALL | VERTWALL)) ||
(dungeon[row][col] & (HORWALL | VERTWALL)) ||
(!(dungeon[nrow][ncol] & (VERTWALL | HORWALL)))) {