summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/viewmap.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-03-02 19:24:36 -0500
committerNeil Moore <neil@s-z.org>2014-03-02 19:27:43 -0500
commit6a872f12d9b9b1322396fda26a71bbe2a3b13b87 (patch)
tree699e6ff45d0e4928a59bc28c1dc0267af31619cd /crawl-ref/source/viewmap.cc
parent048af8ec5dc069e49a8e483c4a99df91c68ec1f0 (diff)
downloadcrawl-ref-6a872f12d9b9b1322396fda26a71bbe2a3b13b87.tar.gz
crawl-ref-6a872f12d9b9b1322396fda26a71bbe2a3b13b87.zip
Make detected items etc override explore horizon (ChrisOelmueller)
You can always ctrl-c to hide the detected objects.
Diffstat (limited to 'crawl-ref/source/viewmap.cc')
-rw-r--r--crawl-ref/source/viewmap.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/viewmap.cc b/crawl-ref/source/viewmap.cc
index 5d934a0c64..ae9dc9c8fd 100644
--- a/crawl-ref/source/viewmap.cc
+++ b/crawl-ref/source/viewmap.cc
@@ -430,7 +430,10 @@ static void _draw_level_map(int start_x, int start_y, bool travel_mode,
cell->glyph = g.ch;
cell->colour = g.col;
- if (_is_explore_horizon(c))
+ const show_class show = get_cell_show_class(
+ env.map_knowledge(c), Options.clean_map);
+
+ if (show == SH_NOTHING && _is_explore_horizon(c))
{
const feature_def& fd = get_feature_def(DNGN_EXPLORE_HORIZON);
cell->glyph = fd.symbol;