diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-25 17:04:20 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-25 17:04:20 +0000 |
commit | b1c2d6e096eebdbae0c2f5a8dd48a5f67a1eb678 (patch) | |
tree | 9d9ef2508041df23a59c5bc447cc4ee8633944c5 /crawl-ref/source/spells4.cc | |
parent | 287e5f0820620b81b518ab1f554107afd8a62ebe (diff) | |
download | crawl-ref-b1c2d6e096eebdbae0c2f5a8dd48a5f67a1eb678.tar.gz crawl-ref-b1c2d6e096eebdbae0c2f5a8dd48a5f67a1eb678.zip |
Complete rewrite of the beam code, making it considerably saner.
However, there might be quite a few bugs lurking in this rewrite. Sorry.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7975 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r-- | crawl-ref/source/spells4.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 3ffe619afe..5308076b90 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -1355,7 +1355,7 @@ bool cast_evaporate(int pow, bolt& beem, int pot_idx) beam_type real_flavour = beem.flavour; beem.flavour = tracer_flavour; - fire_beam(beem); + beem.fire(); if (beem.beam_cancelled) { @@ -1370,7 +1370,7 @@ bool cast_evaporate(int pow, bolt& beem, int pot_idx) // Really fire. beem.flavour = real_flavour; beem.is_tracer = false; - fire_beam(beem); + beem.fire(); // Use up a potion. if (is_blood_potion(potion)) @@ -2010,7 +2010,7 @@ bool cast_fragmentation(int pow, const dist& spd) if (what != NULL) mprf("The %s shatters!", what); - explosion(beam, hole, true); + beam.explode(true, hole); if (grid == DNGN_ORCISH_IDOL) did_god_conduct(DID_DESTROY_ORCISH_IDOL, 8); |