summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-28 21:35:27 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-28 21:35:27 +0000
commit28364e961a56dcc73cf7d15562d253d392745642 (patch)
treef79a2de686ab7edc2a8e3c8d064008111706baeb /crawl-ref/source/beam.cc
parent85d21b25c86fe94bbb39516fd8715530f308f605 (diff)
downloadcrawl-ref-28364e961a56dcc73cf7d15562d253d392745642.tar.gz
crawl-ref-28364e961a56dcc73cf7d15562d253d392745642.zip
Add more noise-related cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5318 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 71c5e5f9a3..f78121bc8e 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -265,11 +265,10 @@ bool zapping(zap_type ztype, int power, bolt &pbolt, bool needs_tracer,
if (!msg.empty())
mpr(msg.c_str());
- if (ztype == ZAP_LIGHTNING && !silenced(you.x_pos, you.y_pos))
+ if (ztype == ZAP_LIGHTNING)
{
// XXX: needs to check silenced at other location, too {dlb}
- mpr("You hear a mighty clap of thunder!", MSGCH_SOUND);
- noisy( 25, you.x_pos, you.y_pos );
+ noisy(25, you.x_pos, you.y_pos, "You hear a mighty clap of thunder!");
}
fire_beam(pbolt);
@@ -5244,7 +5243,7 @@ void explosion( bolt &beam, bool hole_in_the_middle,
r = MAX_EXPLOSION_RADIUS;
// make a noise
- noisy( 10 + 5*r, beam.target_x, beam.target_y );
+ noisy(10 + 5 * r, beam.target_x, beam.target_y);
// set map to false
explode_map.init(false);