diff options
author | elliptic <hyperelliptical@gmail.com> | 2012-08-24 14:49:50 -0400 |
---|---|---|
committer | elliptic <hyperelliptical@gmail.com> | 2012-08-24 14:49:50 -0400 |
commit | c98b6304e3c7b326a1955d9020e25ca1359a4598 (patch) | |
tree | ba110c2be3e72d8033c6439427a5e29cef56af94 /crawl-ref/source/showsymb.cc | |
parent | 23a01bca34af0e3c8e00b36c456f6028b9daee1d (diff) | |
download | crawl-ref-c98b6304e3c7b326a1955d9020e25ca1359a4598.tar.gz crawl-ref-c98b6304e3c7b326a1955d9020e25ca1359a4598.zip |
Actually show out-of-sight excluded staircases in the proper colour.
Diffstat (limited to 'crawl-ref/source/showsymb.cc')
-rw-r--r-- | crawl-ref/source/showsymb.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc index b29fcf79b0..e8b177bcf3 100644 --- a/crawl-ref/source/showsymb.cc +++ b/crawl-ref/source/showsymb.cc @@ -33,7 +33,9 @@ unsigned short _cell_feat_show_colour(const map_cell& cell, // These aren't shown mossy/bloody/slimy. const bool norecolour = is_critical_feature(feat) || feat_is_trap(feat); - if (!coloured) + if (is_stair_exclusion(loc)) + colour = Options.tc_excluded; + else if (!coloured) { if (cell.flags & MAP_EMPHASIZE) colour = fdef.seen_em_colour; @@ -48,9 +50,6 @@ unsigned short _cell_feat_show_colour(const map_cell& cell, return colour; } } - - else if (cell.flags & MAP_EXCLUDED_STAIRS) - colour = Options.tc_excluded; else if (feat >= DNGN_MINMOVE && cell.flags & MAP_WITHHELD) { // Colour grids that cannot be reached due to beholders |