]> granicus.if.org Git - nethack/commitdiff
fix misplaced brace; also relocate Soundeffect()
authornhmall <nhmall@nethack.org>
Sat, 21 Jan 2023 01:51:31 +0000 (20:51 -0500)
committernhmall <nhmall@nethack.org>
Sat, 21 Jan 2023 01:51:31 +0000 (20:51 -0500)
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.

src/dokick.c

index 0a55e0d7da6c5d63f37a8b1aef84eb4277cba883..2b08f7525df0061151868a66924113a3d41b988b 100644 (file)
@@ -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));