diff options
author | Neil Moore <neil@s-z.org> | 2014-07-05 23:29:46 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-05 23:29:46 -0400 |
commit | 23cfd756bfba6ec78f7ae2b5d8da3fb97c3e00f9 (patch) | |
tree | 3ef92c9cbfef79e172bdf8de569ff3cd645e1568 /crawl-ref/source/mon-pathfind.cc | |
parent | b51865a73f7f5f3a2fcea0e1d21c60c0ebe8e999 (diff) | |
download | crawl-ref-23cfd756bfba6ec78f7ae2b5d8da3fb97c3e00f9.tar.gz crawl-ref-23cfd756bfba6ec78f7ae2b5d8da3fb97c3e00f9.zip |
Simplify by using coord_def::origin.
Diffstat (limited to 'crawl-ref/source/mon-pathfind.cc')
-rw-r--r-- | crawl-ref/source/mon-pathfind.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-pathfind.cc b/crawl-ref/source/mon-pathfind.cc index a85c464e7d..38ef8881be 100644 --- a/crawl-ref/source/mon-pathfind.cc +++ b/crawl-ref/source/mon-pathfind.cc @@ -356,7 +356,7 @@ vector<coord_def> monster_pathfind::backtrack() #endif path.insert(path.begin(), pos); - if (pos.x == 0 && pos.y == 0) + if (pos.origin()) break; } while (pos != start); |