summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-11 06:57:43 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-11 06:57:43 +0000
commite65d4ee999e6673244c26ae7278665d6fe241a5e (patch)
tree55fd8f976876d95a8de5fb4fae73f311a96a5284 /crawl-ref/source/monplace.cc
parent46ed610698d1401308402dfc9e00331c4d1b088a (diff)
downloadcrawl-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.cc6
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;
}