From b8bdf26a61b4fdb97e04ef1279d710b6e0d896b2 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Mon, 16 Nov 2009 14:10:31 +0100 Subject: Fix ray_def::on_corner not getting initialized in los.cc:fallback_ray. This was eventually causing not _valid() asserts in the smoky arena (BR 2898267). --- crawl-ref/source/los.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc index d6a8eabcd5..2984718518 100644 --- a/crawl-ref/source/los.cc +++ b/crawl-ref/source/los.cc @@ -711,6 +711,7 @@ void fallback_ray(const coord_def& source, const coord_def& target, coord_def diff = target - source; ray.r.dir.x = diff.x; ray.r.dir.y = diff.y; + ray.on_corner = false; } // Count the number of matching features between two points along -- cgit v1.2.3-54-g00ecf