summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.h
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-08 23:23:32 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-08 23:25:20 -0800
commit6521776b1fc7b68f7cb025397797cd8cad5a32e0 (patch)
treed648ee1c1a06be0b2e0022616a2aa0f8f86833ac /crawl-ref/source/beam.h
parentb3f20c3f817c2b820ae95f3d6c2dbc4379872060 (diff)
downloadcrawl-ref-6521776b1fc7b68f7cb025397797cd8cad5a32e0.tar.gz
crawl-ref-6521776b1fc7b68f7cb025397797cd8cad5a32e0.zip
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.
Diffstat (limited to 'crawl-ref/source/beam.h')
-rw-r--r--crawl-ref/source/beam.h2
1 files changed, 1 insertions, 1 deletions
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<std::string> 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,