summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 15:16:23 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 15:16:23 +0000
commite0ca31828aef509c59b5eb4b6d43cb604d92b947 (patch)
treefd951023a1f4a16c6fb75e4e9f8fcbaa0d10c8c6 /crawl-ref/source/beam.cc
parent1fa08a0d8d319c976963c7e6cc564ae5a91d67c9 (diff)
downloadcrawl-ref-e0ca31828aef509c59b5eb4b6d43cb604d92b947.tar.gz
crawl-ref-e0ca31828aef509c59b5eb4b6d43cb604d92b947.zip
initialize_fire() was setting things in the wrong order. Fixes [2482380].
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8118 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 8ce60ed143..2295fe8b61 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -1459,6 +1459,11 @@ bool bolt::invisible() const
void bolt::initialize_fire()
{
+ // Fix some things which the tracer might have set.
+ range_used = 0;
+ in_explosion_phase = false;
+ use_target_as_pos = false;
+
if (chose_ray)
{
ASSERT(in_bounds(ray.pos()));
@@ -1511,11 +1516,6 @@ void bolt::initialize_fire()
real_flavour = flavour;
- // Fix some things which the tracer might have set.
- range_used = 0;
- in_explosion_phase = false;
- use_target_as_pos = false;
-
message_cache.clear();
// seen might be set by caller to supress this.