diff options
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/beam.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/ray.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index f45af3db48..457a21917f 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -1634,7 +1634,7 @@ void bolt::bounce() bounce_pos = ray.pos(); reflect_grid rg; - for (adjacent_iterator ai(ray.pos()); ai; ++ai) + for (adjacent_iterator ai(ray.pos(), false); ai; ++ai) rg(*ai - ray.pos() + rg_o) = feat_is_solid(grd(*ai)); ray.bounce(rg); range_used += 2; diff --git a/crawl-ref/source/ray.cc b/crawl-ref/source/ray.cc index b76db73562..69d43f5da8 100644 --- a/crawl-ref/source/ray.cc +++ b/crawl-ref/source/ray.cc @@ -311,7 +311,7 @@ void ray_def::bounce(const reflect_grid &rg) r.dir = rtrans.dir; ASSERT(_valid()); - ASSERT(rg(pos() - old_pos)); + ASSERT(!rg(pos() - old_pos + rg_o)); } void ray_def::regress() |