summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r--crawl-ref/source/los.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc
index 1d68cef75c..7d692ca6be 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -1007,17 +1007,12 @@ void calc_show_los()
{
if (!crawl_state.arena && !crawl_state.arena_suspended)
{
- losight(env.show_los, you.pos());
you.update_los();
// What would be visible, if all of the translucent walls were
// made opaque.
// XXX: figure out what this should really do.
losight(env.no_trans_show, you.pos(), opc_solid);
}
- else
- {
- losight_permissive(env.show_los, crawl_view.glosc());
- }
}
bool see_cell(const env_show_grid &show,
@@ -1043,7 +1038,7 @@ bool observe_cell(const coord_def &p)
{
return (((crawl_state.arena || crawl_state.arena_suspended)
&& crawl_view.in_grid_los(p))
- || see_cell(env.show_los, you.pos(), p));
+ || you.see_cell(p));
}
// Answers the question: "Would a cell be within character's line of sight,