From: nhmall Date: Sat, 21 Jan 2023 01:51:31 +0000 (-0500) Subject: fix misplaced brace; also relocate Soundeffect() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f607a775a80dbee64f666a14fdafbf148f4303b8;p=nethack fix misplaced brace; also relocate Soundeffect() The brace added to dokick was misplaced - it should have included the You_hear() as well. The puts the code back the way it was, and relocates the Soundeffect(). The Soundeffect should play whether the hero is Blind or not, and the Soundeffect() macro already includes a Deaf guard. --- diff --git a/src/dokick.c b/src/dokick.c index 0a55e0d7d..2b08f7525 100644 --- a/src/dokick.c +++ b/src/dokick.c @@ -1320,11 +1320,10 @@ dokick(void) return ECMD_TIME; } else if (!(gm.maploc->looted & S_LPUDDING) && !rn2(3) && !(gm.mvitals[PM_BLACK_PUDDING].mvflags & G_GONE)) { + Soundeffect(se_gushing_sound, 100); if (Blind) { - if (!Deaf) { - Soundeffect(se_gushing_sound, 100); - } - You_hear("a gushing sound."); + if (!Deaf) + You_hear("a gushing sound."); } else { pline("A %s ooze gushes up from the drain!", hcolor(NH_BLACK));