summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-31 22:55:24 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-31 22:55:24 +0000
commitd752c86b835ebb44452f869e772b3071371d800a (patch)
tree8b0983930c485d5ad24a27870d86cbe458a78783 /crawl-ref/source/beam.cc
parent5c4a95d1102d3e89b1b03f1266acc62a0382d493 (diff)
downloadcrawl-ref-d752c86b835ebb44452f869e772b3071371d800a.tar.gz
crawl-ref-d752c86b835ebb44452f869e772b3071371d800a.zip
Fix Evaporate not being an explosion and going through walls
(range was uninitialized.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8065 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc19
1 files changed, 8 insertions, 11 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 2fb6c3764e..af64208352 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -2817,17 +2817,6 @@ void bolt::affect_endpoint()
return;
}
- if (flavour >= BEAM_POTION_STINKING_CLOUD && flavour <= BEAM_POTION_RANDOM)
- {
- int newcolour = _potion_beam_flavour_to_colour(flavour);
- if (newcolour >= 0)
- colour = newcolour;
-
- ex_size = std::max(1, ex_size);
- explode();
- return;
- }
-
if (is_tracer)
return;
@@ -5076,7 +5065,15 @@ void bolt::refine_for_explosion()
seeMsg = "The potion explodes!";
hearMsg = "You hear an explosion!";
if (!is_tracer)
+ {
+
name = "cloud";
+ ASSERT(flavour >= BEAM_POTION_STINKING_CLOUD
+ && flavour <= BEAM_POTION_RANDOM);
+ const int newcolour = _potion_beam_flavour_to_colour(flavour);
+ if (newcolour >= 0)
+ colour = newcolour;
+ }
}
if (seeMsg == NULL)