From: Pasi Kallinen Date: Tue, 5 Jan 2016 08:00:27 +0000 (+0200) Subject: Fix bz270, H4166: Finding a secret corridor shows it unlit with lit_corridor X-Git-Tag: NetHack-3.6.1_RC01~1065^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3506062c7d32f55aa34d2146d0b6354cd5ec9d42;p=nethack Fix bz270, H4166: Finding a secret corridor shows it unlit with lit_corridor Also #terrain command with dark_room on showed lit room floor on places with objects or traps. We don't want to show dark room symbol anyway, because the dark room symbols are only for line-of-sight, and #terrain should override that... --- diff --git a/src/detect.c b/src/detect.c index 1e5b23edc..c29ad83eb 100644 --- a/src/detect.c +++ b/src/detect.c @@ -1363,7 +1363,7 @@ register int aflag; /* intrinsic autosearch vs explicit searching */ unblock_point(x, y); /* vision */ exercise(A_WIS, TRUE); nomul(0); - feel_location(x, y); /* make sure it shows up */ + feel_newsym(x, y); /* make sure it shows up */ You("find a hidden passage."); } else { /* Be careful not to find anything in an SCORR or SDOOR */ @@ -1553,6 +1553,8 @@ int which_subset; /* when not full, whether to suppress objs and/or traps */ } } } + if (glyph == cmap_to_glyph(S_darkroom)) + glyph = cmap_to_glyph(S_room); /* FIXME: dirty hack */ show_glyph(x, y, glyph); }