From 141a6b8304cb7a55cad08cd1de379e43ca83b38b Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 15 Jun 2009 20:09:19 +0000 Subject: 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 --- crawl-ref/source/beam.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/beam.cc') 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; + } +} -- cgit v1.2.3-54-g00ecf