diff options
author | Neil Moore <neil@s-z.org> | 2012-07-09 20:53:36 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-07-09 20:53:36 -0400 |
commit | 40540b47a03e52ecbd79fb51d0fb1803d6714061 (patch) | |
tree | 3b021a338e39f574c8b6783dd347665ee1e1965e /crawl-ref/source/showsymb.cc | |
parent | d3bd2fe6cb96cd5907598aad3c5748b3537bab5a (diff) | |
download | crawl-ref-40540b47a03e52ecbd79fb51d0fb1803d6714061.tar.gz crawl-ref-40540b47a03e52ecbd79fb51d0fb1803d6714061.zip |
Don't recolour walls, water, or lava next to slimy walls.
Recolouring walls makes it difficult to tell in console which walls
are dangerous; and recolouring water or lava could kill.
Fixes #5905.
Diffstat (limited to 'crawl-ref/source/showsymb.cc')
-rw-r--r-- | crawl-ref/source/showsymb.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc index d5443bdc4d..940cd5bec1 100644 --- a/crawl-ref/source/showsymb.cc +++ b/crawl-ref/source/showsymb.cc @@ -76,8 +76,12 @@ unsigned short _cell_feat_show_colour(const map_cell& cell, colour = RED; else if (cell.flags & MAP_MOLDY && !norecolour) colour = (cell.flags & MAP_GLOWING_MOLDY) ? LIGHTRED : LIGHTGREEN; - else if (cell.flags & MAP_CORRODING && !norecolour) + else if (cell.flags & MAP_CORRODING && !norecolour + && !feat_is_wall(feat) && !feat_is_lava(feat) + && !feat_is_water(feat)) + { colour = LIGHTGREEN; + } else if (cell.feat_colour()) colour = cell.feat_colour(); else |