intones with sound option disabled

E-mail report from <Someone>.  Don't display the "intones:" prefix when
!soundok since the message suffix won't be displayed in this case due to
a check within verbalize().
This commit is contained in:
cohrs
2002-10-11 22:16:22 +00:00
parent 34f66394c2
commit 299dfffc04
2 changed files with 4 additions and 1 deletions

View File

@@ -336,7 +336,8 @@ register int roomno;
shrined = has_shrine(priest);
sanctum = (priest->data == &mons[PM_HIGH_PRIEST] &&
(Is_sanctum(&u.uz) || In_endgame(&u.uz)));
can_speak = (priest->mcanmove && !priest->msleeping);
can_speak = (priest->mcanmove && !priest->msleeping &&
flags.soundok);
if (can_speak)
pline("%s intones:",
(!Blind ? Monnam(priest) : "A nearby voice"));