diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-09-15 12:43:25 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-09-15 12:43:45 +0200 |
commit | bca85593ae91b0df9ec70f8dc7f0087b3f74609b (patch) | |
tree | 8c4459e191f1c36a369358789122c9c67dfcb69a /crawl-ref/source/mon-pathfind.cc | |
parent | 16d6930bddfe98cdc64448299968c98779f6da19 (diff) | |
download | crawl-ref-bca85593ae91b0df9ec70f8dc7f0087b3f74609b.tar.gz crawl-ref-bca85593ae91b0df9ec70f8dc7f0087b3f74609b.zip |
Minor cosmetic fix.
Diffstat (limited to 'crawl-ref/source/mon-pathfind.cc')
-rw-r--r-- | crawl-ref/source/mon-pathfind.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/mon-pathfind.cc b/crawl-ref/source/mon-pathfind.cc index e45460aa39..c22a49387f 100644 --- a/crawl-ref/source/mon-pathfind.cc +++ b/crawl-ref/source/mon-pathfind.cc @@ -363,11 +363,8 @@ std::vector<coord_def> monster_pathfind::calc_waypoints() #endif for (unsigned int i = 1; i < path.size(); i++) { - if (can_go_straight(mons, pos, path[i]) - && mons_traversable(path[i])) - { + if (can_go_straight(mons, pos, path[i]) && mons_traversable(path[i])) continue; - } else { pos = path[i-1]; |