From 6521776b1fc7b68f7cb025397797cd8cad5a32e0 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Sun, 8 Nov 2009 23:23:32 -0800 Subject: Bug 2852602: wall stopped beam gets two chances If a wall stopped an item beam, and there was an actor right in front of the wall, then the beam would try to hit the actor with the item, even if the beam had already missed. --- crawl-ref/source/beam.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/beam.h') diff --git a/crawl-ref/source/beam.h b/crawl-ref/source/beam.h index f27d36a6fe..04f61ad300 100644 --- a/crawl-ref/source/beam.h +++ b/crawl-ref/source/beam.h @@ -216,7 +216,7 @@ private: std::set message_cache; void emit_message(msg_channel_type chan, const char* msg); void step(); - void hit_wall(); + bool hit_wall(); bool apply_hit_funcs(actor* victim, int dmg, int corpse = -1); bool apply_dmg_funcs(actor* victim, int &dmg, -- cgit v1.2.3-54-g00ecf