diff options
-rw-r--r-- | crawl-ref/source/beam.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 7f44ec6ffc..64857c6078 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -2236,16 +2236,16 @@ void bolt::do_fire() avoid_self = false; } - if (!in_bounds(pos())) + if (!map_bounds(pos())) { ASSERT(!aimed_at_spot); int tries = std::max(GXM, GYM); - while (!in_bounds(ray.pos()) && tries-- > 0) + while (!map_bounds(ray.pos()) && tries-- > 0) ray.regress(); // Something bizarre happening if we can't get back onto the map. - ASSERT(in_bounds(pos())); + ASSERT(map_bounds(pos())); } // The beam has terminated. |