Use macro unhideable_trap

This commit is contained in:
Pasi Kallinen
2022-07-18 13:27:39 +03:00
parent 06efa695be
commit aa09f3eef5
3 changed files with 3 additions and 2 deletions

View File

@@ -416,7 +416,7 @@ maketrap(coordxy x, coordxy y, int typ)
ttmp->dst.dnum = ttmp->dst.dlevel = -1;
ttmp->madeby_u = 0;
ttmp->once = 0;
ttmp->tseen = (typ == HOLE); /* hide non-holes */
ttmp->tseen = unhideable_trap(typ);
ttmp->ttyp = typ;
switch (typ) {