From 8b4ccf7e8ec97cdf20005099d7b5cbf6ce32daf9 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Wed, 11 Nov 2009 00:19:28 +0100 Subject: Use grid_appearance instead of env.grid for LOS calculation. Previously, undetected secret doors in clear rock walls were blocking LOS. Now they don't but do once you detect them... --- crawl-ref/source/losparam.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/losparam.cc') diff --git a/crawl-ref/source/losparam.cc b/crawl-ref/source/losparam.cc index 77fd88943a..ff53d43543 100644 --- a/crawl-ref/source/losparam.cc +++ b/crawl-ref/source/losparam.cc @@ -15,7 +15,9 @@ opacity_type opacity_default::operator()(const coord_def& p) const { - dungeon_feature_type f = env.grid(p); + // Secret doors in translucent walls shouldn't block LOS, + // hence grid_appearance. + dungeon_feature_type f = grid_appearance(p); if (feat_is_opaque(f)) return OPC_OPAQUE; else if (is_opaque_cloud(env.cgrid(p))) -- cgit v1.2.3-54-g00ecf