summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r--crawl-ref/source/los.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc
index bc148d057f..2fc20bdb10 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -660,10 +660,7 @@ bool find_ray(const coord_def& source, const coord_def& target,
bool find_best, bool ignore_solid)
{
if (target == source)
- {
- // XXX: directn expects true, even if the ray is invalid
- return true;
- }
+ return false;
const int signx = ((target.x - source.x >= 0) ? 1 : -1);
const int signy = ((target.y - source.y >= 0) ? 1 : -1);