From 299dfffc0481601f437ad92a435bab5402109e62 Mon Sep 17 00:00:00 2001 From: cohrs Date: Fri, 11 Oct 2002 22:16:22 +0000 Subject: [PATCH] intones with sound option disabled E-mail report from . 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(). --- doc/fixes34.1 | 2 ++ src/priest.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index cb6541603..088bbefda 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -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 diff --git a/src/priest.c b/src/priest.c index 094f8fc2f..774c16d50 100644 --- a/src/priest.c +++ b/src/priest.c @@ -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")); -- 2.40.0