From 2c625f9afea898c8a74fea0074882b16917af011 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 20 Nov 2009 13:49:17 +0100 Subject: Use remembered terrain instead of actual terrain in pathfind. This fixes travel colour revealing changed terrain. --- crawl-ref/source/travel.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/travel.cc') 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. -- cgit v1.2.3-54-g00ecf