summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-15 20:09:19 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-15 20:09:19 +0000
commit141a6b8304cb7a55cad08cd1de379e43ca83b38b (patch)
tree56a1e039e771a49242d2c3ae3a3c4e3ceecb598f /crawl-ref/source/beam.cc
parentceb4c8964c99e64f6adebad119e1bbbafafedd62 (diff)
downloadcrawl-ref-141a6b8304cb7a55cad08cd1de379e43ca83b38b.tar.gz
crawl-ref-141a6b8304cb7a55cad08cd1de379e43ca83b38b.zip
Apply my recent commits to trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9984 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 31511af214..c05e1bf18f 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -5522,7 +5522,7 @@ bolt::bolt() : range(-2), type('*'),
smart_monster(false), can_see_invis(false),
attitude(ATT_HOSTILE), foe_ratio(0), chose_ray(false),
beam_cancelled(false), dont_stop_player(false), bounces(false),
- bounce_pos(), reflections(0), reflector(-1)
+ bounce_pos(), reflections(0), reflector(-1), auto_hit(false)
{
}
@@ -5718,3 +5718,12 @@ std::string beam_type_name(beam_type type)
DEBUGSTR("unknown beam type");
return("UNKNOWN");
}
+
+void clear_zap_info_on_exit()
+{
+ for (unsigned int i = 0; i < NUM_BEAMS; ++i)
+ {
+ delete zap_data[i].damage;
+ delete zap_data[i].tohit;
+ }
+}