summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-08 15:26:25 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-08 15:57:59 +0100
commit19c3c95b8dba465b3efacf8eb96798af69c170fc (patch)
tree5bb6ca79a2db28f1358b6a22451ef3784982d1c0 /crawl-ref/source/los.cc
parente0fbec4e41274e1e67ec8d8b74ff5c374c6e8867 (diff)
downloadcrawl-ref-19c3c95b8dba465b3efacf8eb96798af69c170fc.tar.gz
crawl-ref-19c3c95b8dba465b3efacf8eb96798af69c170fc.zip
Add opc_no_trans and use that for see_cell_no_trans.
The difference between no_trans and solid is whether granite statues are considered opaque. Granite statues are somewhat weird in that they behave completely differently from other statues: You can't shoot missiles at or past them, no items can be in their cell, etc.
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r--crawl-ref/source/los.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc
index f3c57856b6..c3d06066f5 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -933,8 +933,7 @@ void calc_show_los()
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);
+ losight(env.no_trans_show, you.pos(), opc_no_trans);
}
}