summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/los.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc
index fbfd97a9ea..8598f8ce00 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -657,6 +657,13 @@ bool _find_ray_se(const coord_def& target, bool allow_fallback,
if (allow_fallback)
{
+#ifdef DEBUG_DIAGNOSTICS
+ coord_def src = t.transform(coord_def(0,0));
+ coord_def trg = t.transform(target);
+ mprf(MSGCH_DIAGNOSTICS,
+ "falling back in ray search: (%d,%d) to (%d,%d)",
+ src.x, src.y, trg.x, trg.y);
+#endif
ray.accx = 0.5;
ray.accy = 0.5;
if (target.x == 0)