summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-23 20:23:27 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-23 20:23:27 +0000
commit17d40b44d5a07940524594823605f7547bc65ae8 (patch)
tree77c1ef3d364f35b43bea28d39fb30505b417888d
parent3da49abe32d3db91bca61bb367921603397bccd7 (diff)
downloadcrawl-ref-17d40b44d5a07940524594823605f7547bc65ae8.tar.gz
crawl-ref-17d40b44d5a07940524594823605f7547bc65ae8.zip
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
-rw-r--r--crawl-ref/source/beam.cc3
1 files changed, 1 insertions, 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()]));