From bfe7f2740acd90f92da80b545fb3445e5a61e4bf Mon Sep 17 00:00:00 2001 From: vultur-cadens Date: Wed, 30 Nov 2022 11:11:16 -0800 Subject: [PATCH] Fix autodescribe after reading a cursed scroll of gold detection Autodescribe was not updating during browse_map() when the cursor was moved over a gold glyph that was actually a trap, causing the trap to be described as the previous square that the cursor was on (probably "unexplored area") instead of as gold pieces. This was especially noticeable when using OPTIONS=whatis_coord:m, because the coordinate was not updating when moving the cursor over the trap. --- src/detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect.c b/src/detect.c index d5c87ef17..f9cea4e56 100644 --- a/src/detect.c +++ b/src/detect.c @@ -924,7 +924,7 @@ static void display_trap_map(struct trap *ttmp, int cursed_src) { struct monst *mon; - int door, glyph, ter_typ = TER_DETECT | TER_TRP; + int door, glyph, ter_typ = TER_DETECT | ( cursed_src ? TER_OBJ : TER_TRP ); coord cc; cls();