diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-23 19:23:49 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-23 19:23:49 +0000 |
commit | ef2bdf86e4887e46058787ab976695a1d3ac3af2 (patch) | |
tree | e933fde7b2d01b11c8d23a02fdda7f7659cc6c29 /crawl-ref/source/beam.cc | |
parent | c7cf350028ce0a6b3459b7c304e77d76f750a8b1 (diff) | |
download | crawl-ref-ef2bdf86e4887e46058787ab976695a1d3ac3af2.tar.gz crawl-ref-ef2bdf86e4887e46058787ab976695a1d3ac3af2.zip |
Reduce bounciness of beams - bouncing kills twice as much beam travel.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6643 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index b8ada97dab..7d5c22df6c 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -1825,7 +1825,6 @@ void fire_beam(bolt &pbolt, item_def *item, bool drop_item) if (!pbolt.is_tracer) oldValue = set_buffering(false); #endif - while (!beamTerminate) { testpos = ray.pos(); @@ -1878,7 +1877,7 @@ void fire_beam(bolt &pbolt, item_def *item, bool drop_item) while (grid_is_solid(grd(ray.pos()))); ray.advance_and_bounce(); - --rangeRemaining; + rangeRemaining -= 2; } while (rangeRemaining > 0 && grid_is_solid(grd(ray.pos()))); |