summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 11:20:18 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 11:20:18 +0000
commit2c46b8a251869fad34b31f89d32ff43f7b36be34 (patch)
tree182153a6661a82db35a69919e8a30ff5d5375e57 /crawl-ref/source/spells4.cc
parent145574d7faad160fb212d68a693454ea08d59b4f (diff)
downloadcrawl-ref-2c46b8a251869fad34b31f89d32ff43f7b36be34.tar.gz
crawl-ref-2c46b8a251869fad34b31f89d32ff43f7b36be34.zip
Factored out bolt tracer variables into tracer_info struct.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8113 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index de78bc8048..991f481542 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -1346,14 +1346,14 @@ bool cast_evaporate(int pow, bolt& beem, int pot_idx)
break;
}
- // Fire tracer.
+ // Fire tracer. FIXME: use player_tracer() here!
beem.source = you.pos();
beem.can_see_invis = player_see_invis();
beem.smart_monster = true;
beem.attitude = ATT_FRIENDLY;
- beem.fr_count = 0;
beem.beam_cancelled = false;
beem.is_tracer = true;
+ beem.friend_info.reset();
beam_type real_flavour = beem.flavour;
beem.flavour = tracer_flavour;