]> granicus.if.org Git - nethack/commitdiff
intones with sound option disabled
authorcohrs <cohrs>
Fri, 11 Oct 2002 22:16:22 +0000 (22:16 +0000)
committercohrs <cohrs>
Fri, 11 Oct 2002 22:16:22 +0000 (22:16 +0000)
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().

doc/fixes34.1
src/priest.c

index cb654160383015b41321f5a05e2863977e5fec86..088bbefda431a5783cb405f49a4fd7bd22189c5a 100644 (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
index 094f8fc2ffa83e4a7de03c6e8357164c11ec0c53..774c16d503e40b31fe2fcaf2cf73653d59a1c174 100644 (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"));