From fc0b61be608c6f880f2a578df78e3704f44579e4 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 2 Feb 2024 18:41:41 +0200 Subject: [PATCH] Fix another wall_angle problem Secret doors also need the correct wall_angle. --- src/detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect.c b/src/detect.c index 3bd3335d2..95f574c1e 100644 --- a/src/detect.c +++ b/src/detect.c @@ -2092,7 +2092,7 @@ reveal_terrain_getglyph( */ save_spot = levl[x][y]; levl[x][y].typ = gl.lastseentyp[x][y]; - if (IS_WALL(levl[x][y].typ)) + if (IS_WALL(levl[x][y].typ) || levl[x][y].typ == SDOOR) xy_set_wall_state(x, y); /* levl[x][y].wall_info */ glyph = back_to_glyph(x, y); levl[x][y] = save_spot;