]> granicus.if.org Git - nethack/commitdiff
Fix bz270, H4166: Finding a secret corridor shows it unlit with lit_corridor
authorPasi Kallinen <paxed@alt.org>
Tue, 5 Jan 2016 08:00:27 +0000 (10:00 +0200)
committerPasi Kallinen <paxed@alt.org>
Tue, 5 Jan 2016 09:14:04 +0000 (11:14 +0200)
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...

src/detect.c

index 1e5b23edc8a1ed8c73ee01d7180c262a91bd65cb..c29ad83eb69aa2c28b4374651b551b7edf731b0a 100644 (file)
@@ -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);
             }