From 0c03b9bea6da8791e169cca83063e08556021bb2 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 2 Dec 2023 14:40:18 -0500 Subject: [PATCH] follow-up: Soundeffect does its own Deaf check Simplify previous fix, as Soundeffect does its own Deaf checks, so doesn't need to follow an if-test. --- src/monmove.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/monmove.c b/src/monmove.c index 980188e28..146836d4e 100644 --- a/src/monmove.c +++ b/src/monmove.c @@ -1387,9 +1387,7 @@ postmov( if (mb_trapped(mtmp, canseeit)) return MMOVE_DIED; } else { - if (!Deaf) { - Soundeffect(se_door_unlock_and_open, 50); - } + Soundeffect(se_door_unlock_and_open, 50); if (flags.verbose) { if (canseeit && canspotmon(mtmp)) { pline("%s unlocks and opens a door.", @@ -1407,9 +1405,7 @@ postmov( if (mb_trapped(mtmp, canseeit)) return MMOVE_DIED; } else { - if (!Deaf) { - Soundeffect(se_door_open, 100); - } + Soundeffect(se_door_open, 100); if (flags.verbose) { if (canseeit && canspotmon(mtmp)) { pline("%s opens a door.", Monnam(mtmp)); @@ -1433,9 +1429,7 @@ postmov( if (mb_trapped(mtmp, canseeit)) return MMOVE_DIED; } else { - if (!Deaf) { - Soundeffect(se_door_crash_open, 50); - } + Soundeffect(se_door_crash_open, 50); if (flags.verbose) { if (canseeit && canspotmon(mtmp)) { pline("%s smashes down a door.", Monnam(mtmp));