diff options
Diffstat (limited to 'crawl-ref/source/debug.cc')
-rw-r--r-- | crawl-ref/source/debug.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc index ddc3bd3017..cf5340e2b9 100644 --- a/crawl-ref/source/debug.cc +++ b/crawl-ref/source/debug.cc @@ -4101,8 +4101,21 @@ void debug_pathfind(int mid) snprintf(info, INFO_SIZE, "(%d, %d) ", path[i].x, path[i].y); path_str += info; } + mpr(path_str.c_str()); + mprf("-> path length: %d", path.size()); + mpr(EOL); + path = mp.calc_waypoints(); + path_str = ""; + mpr(EOL); + mpr("And here are the needed waypoints: "); + for (unsigned int i = 0; i < path.size(); i++) + { + snprintf(info, INFO_SIZE, "(%d, %d) ", path[i].x, path[i].y); + path_str += info; + } mpr(path_str.c_str()); + mprf("-> #waypoints: %d", path.size()); } } #endif |