@@ -2690,6 +2690,9 @@ void executeKeystroke(signed long keystroke, boolean controlKey, boolean shiftKe
26902690 gameOver ("Quit" , true);
26912691 }
26922692 break ;
2693+ case TTS_TOGGLE_KEY :
2694+ toggleTTS ();
2695+ break ;
26932696 case GRAPHICS_KEY :
26942697 if (hasGraphics ) {
26952698 graphicsMode = setGraphicsMode ((graphicsMode + 1 ) % 3 );
@@ -2974,8 +2977,8 @@ boolean confirm(char *prompt, boolean alsoDuringPlayback) {
29742977 return true; // oh yes he did
29752978 }
29762979
2977- playSpeech (prompt , 3 );
2978- playSpeech ("Yes... No" , 3 );
2980+ playSpeech (prompt , THREE_SPEECH , SPEECH_BLOCKS );
2981+ playSpeech ("Yes... No" , THREE_SPEECH , 0 );
29792982
29802983 encodeMessageColor (whiteColorEscape , 0 , & white );
29812984 encodeMessageColor (yellowColorEscape , 0 , KEYBOARD_LABELS ? & yellow : & white );
@@ -3441,17 +3444,17 @@ void temporaryMessage(const char *msg, enum messageFlags flags) {
34413444 }
34423445 restoreRNG ;
34433446
3444- playSpeech (msg , 1 );
3447+ playSpeech (msg , ONE_SPEECH , 0 );
34453448}
34463449
3447- void messageWithColor (char * msg , color * theColor , enum messageFlags flags , short speechPriority ) {
3450+ void messageWithColor (char * msg , color * theColor , enum messageFlags flags , enum speechPriority priority ) {
34483451 char buf [COLS * 2 ] = "" ;
34493452 short i ;
34503453
34513454 i = 0 ;
34523455 i = encodeMessageColor (buf , i , theColor );
34533456 strcpy (& (buf [i ]), msg );
3454- message (buf , flags , speechPriority );
3457+ message (buf , flags , priority );
34553458}
34563459
34573460void flavorMessage (char * msg ) {
@@ -3479,7 +3482,7 @@ void flavorMessage(char *msg) {
34793482// arrived on the same turn, they may collapse. Alternately, they may collapse
34803483// if the older message is the latest one in the archive and the new one is not
34813484// semi-colon foldable (such as a combat message.)
3482- void message (const char * msg , enum messageFlags flags , short speechPriority ) {
3485+ void message (const char * msg , enum messageFlags flags , enum speechPriority priority ) {
34833486 short i ;
34843487 archivedMessage * archiveEntry ;
34853488 boolean newMessage ;
@@ -3549,7 +3552,7 @@ void message(const char *msg, enum messageFlags flags, short speechPriority) {
35493552
35503553 restoreRNG ;
35513554
3552- playSpeech (msg , speechPriority );
3555+ playSpeech (msg , priority , 0 );
35533556}
35543557
35553558// Only used for the "you die..." message, to enable posthumous inventory viewing.
0 commit comments