diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-10-08 17:37:20 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-10-11 01:20:04 +0200 |
commit | b2ca2989d9104e97f5d11beb8b7577e1f84c07e3 (patch) | |
tree | 870731b03a370b4c9bcad3391b4dcdca5f1e409d /crawl-ref/source/losparam.cc | |
parent | 7b404eaea90a101eaf147840ad74a3319baf9510 (diff) | |
download | crawl-ref-b2ca2989d9104e97f5d11beb8b7577e1f84c07e3.tar.gz crawl-ref-b2ca2989d9104e97f5d11beb8b7577e1f84c07e3.zip |
Get rid of grid_appearance().
Diffstat (limited to 'crawl-ref/source/losparam.cc')
-rw-r--r-- | crawl-ref/source/losparam.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/losparam.cc b/crawl-ref/source/losparam.cc index 5be0bd42c1..bab9666511 100644 --- a/crawl-ref/source/losparam.cc +++ b/crawl-ref/source/losparam.cc @@ -24,9 +24,7 @@ const opacity_no_actor opc_no_actor = opacity_no_actor(); opacity_type opacity_default::operator()(const coord_def& p) const { - // Secret doors in translucent walls shouldn't block LOS, - // hence grid_appearance. - dungeon_feature_type f = grid_appearance(p); + dungeon_feature_type f = grd(p); if (feat_is_opaque(f)) return OPC_OPAQUE; else if (feat_is_tree(f)) @@ -48,7 +46,7 @@ opacity_type opacity_fullyopaque::operator()(const coord_def& p) const opacity_type opacity_no_trans::operator()(const coord_def& p) const { - dungeon_feature_type f = grid_appearance(p); + dungeon_feature_type f = grd(p); if (feat_is_opaque(f) || feat_is_wall(f) || feat_is_tree(f)) return OPC_OPAQUE; else if (is_opaque_cloud(env.cgrid(p))) |