From d247c643b6236c4c40f740ab0c91234c3214fae9 Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 8 Jan 2009 09:41:37 +0000 Subject: Some code cleanup, inspired by [2483180]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8324 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/beam.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/beam.cc') diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 1c82831ed9..e38023ebb8 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -3897,6 +3897,10 @@ void bolt::affect_player() was_affected = true; } } + + // Acid. + if (flavour == BEAM_ACID) + splash_with_acid(5, affects_items); if (affects_items) { @@ -3912,9 +3916,6 @@ void bolt::affect_player() if (flavour == BEAM_COLD) expose_player_to_element(BEAM_COLD, burn_power); - if (flavour == BEAM_ACID) - splash_with_acid(5); - // Spore pops. if (in_explosion_phase && flavour == BEAM_SPORE) expose_player_to_element(BEAM_SPORE, burn_power); -- cgit v1.2.3-54-g00ecf