From 28364e961a56dcc73cf7d15562d253d392745642 Mon Sep 17 00:00:00 2001 From: dolorous Date: Wed, 28 May 2008 21:35:27 +0000 Subject: Add more noise-related cleanups. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5318 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/beam.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/beam.cc') 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); -- cgit v1.2.3-54-g00ecf