diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-11 06:57:43 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-11 06:57:43 +0000 |
commit | e65d4ee999e6673244c26ae7278665d6fe241a5e (patch) | |
tree | 55fd8f976876d95a8de5fb4fae73f311a96a5284 /crawl-ref/source/monplace.cc | |
parent | 46ed610698d1401308402dfc9e00331c4d1b088a (diff) | |
download | crawl-ref-e65d4ee999e6673244c26ae7278665d6fe241a5e.tar.gz crawl-ref-e65d4ee999e6673244c26ae7278665d6fe241a5e.zip |
Remove #define SHUT_LABYRINTH because I don't think it's needed anymore.
Add more information to the version command.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5729 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r-- | crawl-ref/source/monplace.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc index efbe9c3455..260cc4b573 100644 --- a/crawl-ref/source/monplace.cc +++ b/crawl-ref/source/monplace.cc @@ -2551,6 +2551,12 @@ std::vector<coord_def> monster_pathfind::calc_waypoints() } } + // Add the actual target to the list of waypoints, so we can later check + // whether a tracked enemy has moved too much, and we have to update the + // path. + if (pos != path[path.size() - 1]) + waypoints.push_back(pos); + return waypoints; } |