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

@@ -274,6 +274,8 @@ unskilled rider who can't reach items on floor also can't dip into moat or
pool from flying steed
when summoning nasty monsters, use new monster's type to decide if they can
be placed on boulders, et al, not the summoning monster's type
don't display the "intones:" prefix when !soundok since the message suffix
won't be displayed in this case
Platform- and/or Interface-Specific Fixes

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