summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pathfind.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-06-09 19:23:27 -0400
committerNeil Moore <neil@s-z.org>2013-06-09 19:38:03 -0400
commita5badbaee5c2a35ea819e066787da97ad2f0648e (patch)
tree976c8c5e4298388a60b356a62b4f2db065693831 /crawl-ref/source/mon-pathfind.cc
parent5d961268d2138bd511a266b787977c805a2292f8 (diff)
downloadcrawl-ref-a5badbaee5c2a35ea819e066787da97ad2f0648e.tar.gz
crawl-ref-a5badbaee5c2a35ea819e066787da97ad2f0648e.zip
New mcros ASSERT_IN_BOUNDS{,_OR_ORIGIN}().
These print the out-of-bounds coordinate as part of the assertion message.
Diffstat (limited to 'crawl-ref/source/mon-pathfind.cc')
-rw-r--r--crawl-ref/source/mon-pathfind.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-pathfind.cc b/crawl-ref/source/mon-pathfind.cc
index b4653d6651..751c5ad105 100644
--- a/crawl-ref/source/mon-pathfind.cc
+++ b/crawl-ref/source/mon-pathfind.cc
@@ -343,7 +343,7 @@ vector<coord_def> monster_pathfind::backtrack()
{
dir = prev[pos.x][pos.y];
pos = pos + Compass[dir];
- ASSERT(in_bounds(pos));
+ ASSERT_IN_BOUNDS(pos);
#ifdef DEBUG_PATHFIND
mprf("prev: (%d, %d), pos: (%d, %d)", Compass[dir].x, Compass[dir].y,
pos.x, pos.y);