summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-21 09:46:00 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-21 09:46:00 +0000
commitaf6dde3945128ffddf3e9b61c9ae9b9ab9064bc0 (patch)
tree376fe4493cf4ee40e9e08cf17df3bcb50331082f /crawl-ref/source/abl-show.cc
parent1a33b2f941cbbf385eb9d578ce4e03bcd1d08e94 (diff)
downloadcrawl-ref-af6dde3945128ffddf3e9b61c9ae9b9ab9064bc0.tar.gz
crawl-ref-af6dde3945128ffddf3e9b61c9ae9b9ab9064bc0.zip
Fix explosions hitting their endpoint twice. [2481715]
As of now, explosion beams do not do affect anything until they actually explode. I can't think of any explosions that should do this, but I'm pretty sure there are some that I'm forgetting. Fix a security issue with crash dump reporting. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8646 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index b64bb41064..8dbb11752d 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -1116,7 +1116,8 @@ static bool _do_ability(const ability_def& abil)
return (false);
beam.range = spell_range(SPELL_FIREBALL, pow, true);
- fireball(pow, beam);
+ if (!fireball(pow, beam))
+ return (false);
}
// only one allowed since this is instantaneous -- bwr