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/spl-cast.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/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 81ebf66e22..d24e2b1523 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -2538,6 +2538,7 @@ void MiscastEffect::do_miscast() // the target around. beam.source = target->pos(); beam.target = target->pos(); + beam.use_target_as_pos = true; all_msg = you_msg = mon_msg = mon_msg_seen = mon_msg_unseen = ""; msg_ch = MSGCH_PLAIN; @@ -2709,7 +2710,7 @@ bool MiscastEffect::_explosion() return (false); do_msg(true); - explosion(beam, false, true); + beam.explode(); return (true); } |