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.
This commit is contained in:
nhmall
2023-12-02 14:40:18 -05:00
parent e8ebad8db9
commit 0c03b9bea6

View File

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