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.
This commit is contained in:
nhmall
2023-01-20 20:51:31 -05:00
parent 77d5f048a4
commit f607a775a8

View 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));