summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pathfind.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-02-22 12:48:40 +0100
committerJesse Luehrs <doy@tozt.net>2010-02-22 09:43:26 -0600
commitc394fd759bfcdaa1c2f9aa3f2a906f6a4e9dcec1 (patch)
tree948fa2fc5342ab2f55e46e21ed2da87147f562fe /crawl-ref/source/mon-pathfind.cc
parent66dab56cd5c2c7249036f53e101b753d39ba33a1 (diff)
downloadcrawl-ref-c394fd759bfcdaa1c2f9aa3f2a906f6a4e9dcec1.tar.gz
crawl-ref-c394fd759bfcdaa1c2f9aa3f2a906f6a4e9dcec1.zip
Update pathfinding to use opacity_immob.
This updates the hacks from af55d9e7 to use the new opacity_immob instead of opacity_no_trans. (cherry picked from commit 68691397f9adcfdb6d6c8ef13a1ea4ecae84e8b9)
Diffstat (limited to 'crawl-ref/source/mon-pathfind.cc')
-rw-r--r--crawl-ref/source/mon-pathfind.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-pathfind.cc b/crawl-ref/source/mon-pathfind.cc
index c9498c2f3d..d2a4324862 100644
--- a/crawl-ref/source/mon-pathfind.cc
+++ b/crawl-ref/source/mon-pathfind.cc
@@ -390,10 +390,10 @@ bool monster_pathfind::traversable(const coord_def p)
return (false);
// XXX: Hack to be somewhat consistent with uses of
- // you.trans_wall_block elsewhere in pathfinding.
+ // opc_immob elsewhere in pathfinding.
// All of this should eventually be replaced by
// giving the monster a proper pathfinding LOS.
- if (opc_no_trans(p) == OPC_OPAQUE)
+ if (opc_immob(p) == OPC_OPAQUE)
return (false);
if (mons)