summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/showsymb.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-04-30 03:06:50 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-04-30 03:06:50 +0100
commit7eda9e3a0c5f67d8577ee15a79d0bcefcac70b5a (patch)
tree82f4066e9871163968cc07aa40fe3fa0e0b3b3fc /crawl-ref/source/showsymb.cc
parentfe3d96ea9e71202391a720f567a276ff4ed61174 (diff)
downloadcrawl-ref-7eda9e3a0c5f67d8577ee15a79d0bcefcac70b5a.tar.gz
crawl-ref-7eda9e3a0c5f67d8577ee15a79d0bcefcac70b5a.zip
Display Leda's and Disjunction haloes over TSO halo
They're more useful information (although Leda's is hard to see on top of TSO halo). Also only recolour floor with Leda's, not other features like stairs.
Diffstat (limited to 'crawl-ref/source/showsymb.cc')
-rw-r--r--crawl-ref/source/showsymb.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc
index 6031726a5b..e6b34e265d 100644
--- a/crawl-ref/source/showsymb.cc
+++ b/crawl-ref/source/showsymb.cc
@@ -104,15 +104,13 @@ static unsigned short _cell_feat_show_colour(const map_cell& cell,
if (feat == DNGN_SHALLOW_WATER && player_in_branch(BRANCH_SHOALS))
colour = ETC_WAVES;
- if (feat_has_solid_floor(feat) && !feat_is_water(feat)
- && cell.flags & MAP_LIQUEFIED)
- {
- colour = ETC_LIQUEFIED;
- }
-
if (feat == DNGN_FLOOR)
{
- if (cell.flags & MAP_HALOED)
+ if (cell.flags & MAP_LIQUEFIED)
+ colour = ETC_LIQUEFIED;
+ else if (cell.flags & MAP_DISJUNCT)
+ colour = ETC_DISJUNCTION;
+ else if (cell.flags & MAP_HALOED)
{
if (cell.flags & MAP_SILENCED && cell.flags & MAP_UMBRAED)
colour = CYAN; // Default for silence.
@@ -136,8 +134,6 @@ static unsigned short _cell_feat_show_colour(const map_cell& cell,
colour = ETC_ORB_GLOW;
else if (cell.flags & MAP_QUAD_HALOED)
colour = BLUE;
- else if (cell.flags & MAP_DISJUNCT)
- colour = ETC_DISJUNCTION;
else if (cell.flags & MAP_HOT)
colour = ETC_FIRE;
}