diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-02-25 16:38:13 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-02-25 20:23:25 +0100 |
commit | 49c7d7c909952821419829c910f2d0a8472bf229 (patch) | |
tree | 6446777c9a197a8dab5b6d3e803963fa5aec9312 /crawl-ref/source/mon-pathfind.cc | |
parent | 1990be2cce1a69ebff37f86a9e3543bdc1ac9e6d (diff) | |
download | crawl-ref-49c7d7c909952821419829c910f2d0a8472bf229.tar.gz crawl-ref-49c7d7c909952821419829c910f2d0a8472bf229.zip |
Improve clinging pathfinding.
Diffstat (limited to 'crawl-ref/source/mon-pathfind.cc')
-rw-r--r-- | crawl-ref/source/mon-pathfind.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-pathfind.cc b/crawl-ref/source/mon-pathfind.cc index 8c9de58eb1..8b97759df2 100644 --- a/crawl-ref/source/mon-pathfind.cc +++ b/crawl-ref/source/mon-pathfind.cc @@ -443,8 +443,7 @@ int monster_pathfind::mons_travel_cost(coord_def npos) const monster_type mt = mons_base_type(mons); const bool ground_level = !mons_airborne(mt, -1, false) && !(mons->can_cling_to_walls() - && cell_is_clingable(pos) - && cell_can_cling_to(pos, npos)); + && cell_is_clingable(npos)); // Travelling through water, entering or leaving water is more expensive // for non-amphibious monsters, so they'll avoid it where possible. |