summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-20 13:49:17 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-20 15:44:19 +0100
commit2c625f9afea898c8a74fea0074882b16917af011 (patch)
tree80784c23fcb953e4cb2733d2a510f8ac384f70fa /crawl-ref/source/travel.cc
parent87e8df0226e3b8c01543aed873aa28bfd31c474c (diff)
downloadcrawl-ref-2c625f9afea898c8a74fea0074882b16917af011.tar.gz
crawl-ref-2c625f9afea898c8a74fea0074882b16917af011.zip
Use remembered terrain instead of actual terrain in pathfind.
This fixes travel colour revealing changed terrain.
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r--crawl-ref/source/travel.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index 906b67b5e4..f1ce4f0cb9 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -339,9 +339,8 @@ bool is_travelsafe_square(const coord_def& c, bool ignore_hostile,
return (false);
// [dshaligram] At this point we're guaranteed to know the terrain (see
- // check ^^^), which means we know what dungeon feature is here. Thus it's
- // safe to use the actual dungeon feature directly.
- const dungeon_feature_type grid = grd(c);
+ // check ^^^).
+ const dungeon_feature_type grid = env.map_knowledge(c).feat();
// Also make note of what's displayed on the level map for
// plant/fungus checks.