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:
+3
-9
@@ -1387,9 +1387,7 @@ postmov(
|
|||||||
if (mb_trapped(mtmp, canseeit))
|
if (mb_trapped(mtmp, canseeit))
|
||||||
return MMOVE_DIED;
|
return MMOVE_DIED;
|
||||||
} else {
|
} else {
|
||||||
if (!Deaf) {
|
Soundeffect(se_door_unlock_and_open, 50);
|
||||||
Soundeffect(se_door_unlock_and_open, 50);
|
|
||||||
}
|
|
||||||
if (flags.verbose) {
|
if (flags.verbose) {
|
||||||
if (canseeit && canspotmon(mtmp)) {
|
if (canseeit && canspotmon(mtmp)) {
|
||||||
pline("%s unlocks and opens a door.",
|
pline("%s unlocks and opens a door.",
|
||||||
@@ -1407,9 +1405,7 @@ postmov(
|
|||||||
if (mb_trapped(mtmp, canseeit))
|
if (mb_trapped(mtmp, canseeit))
|
||||||
return MMOVE_DIED;
|
return MMOVE_DIED;
|
||||||
} else {
|
} else {
|
||||||
if (!Deaf) {
|
Soundeffect(se_door_open, 100);
|
||||||
Soundeffect(se_door_open, 100);
|
|
||||||
}
|
|
||||||
if (flags.verbose) {
|
if (flags.verbose) {
|
||||||
if (canseeit && canspotmon(mtmp)) {
|
if (canseeit && canspotmon(mtmp)) {
|
||||||
pline("%s opens a door.", Monnam(mtmp));
|
pline("%s opens a door.", Monnam(mtmp));
|
||||||
@@ -1433,9 +1429,7 @@ postmov(
|
|||||||
if (mb_trapped(mtmp, canseeit))
|
if (mb_trapped(mtmp, canseeit))
|
||||||
return MMOVE_DIED;
|
return MMOVE_DIED;
|
||||||
} else {
|
} else {
|
||||||
if (!Deaf) {
|
Soundeffect(se_door_crash_open, 50);
|
||||||
Soundeffect(se_door_crash_open, 50);
|
|
||||||
}
|
|
||||||
if (flags.verbose) {
|
if (flags.verbose) {
|
||||||
if (canseeit && canspotmon(mtmp)) {
|
if (canseeit && canspotmon(mtmp)) {
|
||||||
pline("%s smashes down a door.", Monnam(mtmp));
|
pline("%s smashes down a door.", Monnam(mtmp));
|
||||||
|
|||||||
Reference in New Issue
Block a user