summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 3a8acbd9ac..96f3f09649 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -1408,7 +1408,7 @@ static void _munge_bounced_bolt(bolt &old_bolt, bolt &new_bolt,
// Don't bounce straight into another wall. Can happen if the beam
// is shot into an inside corner.
ray_def test_ray = temp_ray;
- test_ray.advance(true);
+ test_ray.advance();
if (in_bounds(test_ray.pos()) && !cell_is_solid(test_ray.pos()))
break;
@@ -2112,11 +2112,7 @@ void bolt::do_fire()
// the cell.
draw(pos());
- // A bounce takes away the meaning from the target.
- if (bounces == 0)
- ray.advance_through(target);
- else
- ray.advance(true);
+ ray.advance();
avoid_self = false;
}