summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-damage.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-05-06 00:06:52 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-05-06 00:15:48 -0400
commit45fdd85575c4b6fe5a6fdbea1b70300153f1de8b (patch)
tree0dd71411cf43c96e6c3087782e16da79b978f781 /crawl-ref/source/spl-damage.cc
parentba0cf197de24d8fc57e9cc5fe56c025c4713070b (diff)
downloadcrawl-ref-45fdd85575c4b6fe5a6fdbea1b70300153f1de8b.tar.gz
crawl-ref-45fdd85575c4b6fe5a6fdbea1b70300153f1de8b.zip
Replace a goto call with an else if
Ideally the other goto here would also be removed, but that bit of logical structure is more tangled.
Diffstat (limited to 'crawl-ref/source/spl-damage.cc')
-rw-r--r--crawl-ref/source/spl-damage.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/crawl-ref/source/spl-damage.cc b/crawl-ref/source/spl-damage.cc
index fb0740b3ac..6c22a90b47 100644
--- a/crawl-ref/source/spl-damage.cc
+++ b/crawl-ref/source/spl-damage.cc
@@ -2045,12 +2045,8 @@ bool setup_fragmentation_beam(bolt &beam, int pow, const actor *caster,
beam.flavour = BEAM_ICE;
return true;
}
-
- goto do_terrain;
}
-
- // Set up the explosion if there's a visible monster.
- if (mon && (caster->is_monster() || (you.can_see(mon))))
+ else if (mon && (caster->is_monster() || (you.can_see(mon))))
{
switch (mon->type)
{