summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r--crawl-ref/source/travel.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index 584e6c5e63..e0b4775bab 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -552,7 +552,8 @@ bool is_travelsafe_square(int x, int y, bool ignore_hostile,
return (false);
const bool seen = see_grid(x,y);
- const int grid = (seen ? grd[x][y] : get_envmap_obj(x,y));
+ const int grid = ((seen || ignore_terrain_knowledge) ? grd[x][y]
+ : get_envmap_obj(x,y));
// FIXME: this compares to the *real* monster at the square,
// even if the one we've seen is different.