diff options
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r-- | crawl-ref/source/los.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc index ba8d36848d..b2756e943d 100644 --- a/crawl-ref/source/los.cc +++ b/crawl-ref/source/los.cc @@ -644,9 +644,9 @@ bool find_ray(const coord_def& source, const coord_def& target, fabs(_slope_factor(lray) - want_slope) : 0.0; if (blocked || (find_shortest && - _superior_ray(shortest, imbalance, - real_length, cimbalance, - slope_diff, ray_slope_diff))) + !_superior_ray(shortest, imbalance, + real_length, cimbalance, + slope_diff, ray_slope_diff))) { continue; } |