From 17d40b44d5a07940524594823605f7547bc65ae8 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 23 Jul 2008 20:23:27 +0000 Subject: Trunk->0.4 r6643: Reduce bounciness of beams - bouncing kills twice as much beam travel. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6647 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/beam.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index c7527ffc5a..ccff519f00 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -1829,7 +1829,6 @@ void fire_beam(bolt &pbolt, item_def *item, bool drop_item) if (!pbolt.is_tracer) oldValue = set_buffering(false); #endif - while (!beamTerminate) { tx = ray.x(); @@ -1884,7 +1883,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.x()][ray.y()])); -- cgit v1.2.3-54-g00ecf