From e750222e1317fa7cd7629771e3251c03c57e5e3c Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 18 Oct 2009 16:16:05 +0200 Subject: Ensure precalculations are done before find_ray is called. Fixes BR 2881139. Arena mode doesn't result in a call to losight() anymore, which was doing the precalculations before. --- crawl-ref/source/los.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc index 5c9f9b74c6..13ce0e0608 100644 --- a/crawl-ref/source/los.cc +++ b/crawl-ref/source/los.cc @@ -592,6 +592,9 @@ bool _find_ray_se(const coord_def& target, ray_def& ray, if (!bds(target)) return false; + // Ensure the precalculations have been done. + raycast(); + const std::vector &min = min_cellrays(target); ASSERT(min.size() > 0); cellray c = min[0]; // XXX: const cellray &c ? -- cgit v1.2.3-54-g00ecf