summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-10 17:55:22 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-10 17:55:22 +0000
commite5bc0885d18da1c1cf1af6fcc83d66ef63fb65d1 (patch)
treeee0693f44ba2210fe2f14d902f8e08493e27ff3a /crawl-ref
parent5199c7d07048c26f048419b0602a655a5831077d (diff)
downloadcrawl-ref-e5bc0885d18da1c1cf1af6fcc83d66ef63fb65d1.tar.gz
crawl-ref-e5bc0885d18da1c1cf1af6fcc83d66ef63fb65d1.zip
Removed hardcoding in travel colour check.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2408 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 42690aed3a..15445edea6 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -534,9 +534,9 @@ screen_buffer_t colour_code_map( int x, int y, bool item_colour,
return real_colour(tc);
}
- // XXX: [ds] If we've an important colour, override other feature
- // colouring. Yes, this is hacky. Story of my life.
- if (tc == LIGHTGREEN || tc == LIGHTMAGENTA)
+ // If this is an important travel square, don't allow the colour
+ // to be overridden.
+ if (is_waypoint(x, y) || travel_point_distance[x][y] == PD_EXCLUDED)
return real_colour(tc);
if (item_colour && is_envmap_item(x, y))