@@ -2690,6 +2690,9 @@ void executeKeystroke(signed long keystroke, boolean controlKey, boolean shiftKe
2690
2690
gameOver ("Quit" , true);
2691
2691
}
2692
2692
break ;
2693
+ case TTS_TOGGLE_KEY :
2694
+ toggleTTS ();
2695
+ break ;
2693
2696
case GRAPHICS_KEY :
2694
2697
if (hasGraphics ) {
2695
2698
graphicsMode = setGraphicsMode ((graphicsMode + 1 ) % 3 );
@@ -2974,8 +2977,8 @@ boolean confirm(char *prompt, boolean alsoDuringPlayback) {
2974
2977
return true; // oh yes he did
2975
2978
}
2976
2979
2977
- playSpeech (prompt , 3 );
2978
- playSpeech ("Yes... No" , 3 );
2980
+ playSpeech (prompt , THREE_SPEECH , SPEECH_BLOCKS );
2981
+ playSpeech ("Yes... No" , THREE_SPEECH , 0 );
2979
2982
2980
2983
encodeMessageColor (whiteColorEscape , 0 , & white );
2981
2984
encodeMessageColor (yellowColorEscape , 0 , KEYBOARD_LABELS ? & yellow : & white );
@@ -3441,17 +3444,17 @@ void temporaryMessage(const char *msg, enum messageFlags flags) {
3441
3444
}
3442
3445
restoreRNG ;
3443
3446
3444
- playSpeech (msg , 1 );
3447
+ playSpeech (msg , ONE_SPEECH , 0 );
3445
3448
}
3446
3449
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 ) {
3448
3451
char buf [COLS * 2 ] = "" ;
3449
3452
short i ;
3450
3453
3451
3454
i = 0 ;
3452
3455
i = encodeMessageColor (buf , i , theColor );
3453
3456
strcpy (& (buf [i ]), msg );
3454
- message (buf , flags , speechPriority );
3457
+ message (buf , flags , priority );
3455
3458
}
3456
3459
3457
3460
void flavorMessage (char * msg ) {
@@ -3479,7 +3482,7 @@ void flavorMessage(char *msg) {
3479
3482
// arrived on the same turn, they may collapse. Alternately, they may collapse
3480
3483
// if the older message is the latest one in the archive and the new one is not
3481
3484
// 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 ) {
3483
3486
short i ;
3484
3487
archivedMessage * archiveEntry ;
3485
3488
boolean newMessage ;
@@ -3549,7 +3552,7 @@ void message(const char *msg, enum messageFlags flags, short speechPriority) {
3549
3552
3550
3553
restoreRNG ;
3551
3554
3552
- playSpeech (msg , speechPriority );
3555
+ playSpeech (msg , priority , 0 );
3553
3556
}
3554
3557
3555
3558
// Only used for the "you die..." message, to enable posthumous inventory viewing.
0 commit comments