mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
Let faded out messages finish
This commit is contained in:
parent
90b2b70b96
commit
fb91eeb06e
1 changed files with 4 additions and 1 deletions
|
@ -3104,7 +3104,10 @@ void Message_TTS_Update(GlobalContext* globalCtx) {
|
||||||
} else if (sTtsHasMessage == 1) {
|
} else if (sTtsHasMessage == 1) {
|
||||||
sTtsHasMessage = 0;
|
sTtsHasMessage = 0;
|
||||||
sTtsHasNewMessage = 0;
|
sTtsHasNewMessage = 0;
|
||||||
OTRTextToSpeechCallback(""); // cancel current speech
|
if (msgCtx->decodedTextLen < 3 || (msgCtx->msgBufDecoded[msgCtx->decodedTextLen - 2] != MESSAGE_FADE &&
|
||||||
|
msgCtx->msgBufDecoded[msgCtx->decodedTextLen - 3] != MESSAGE_FADE2)) {
|
||||||
|
OTRTextToSpeechCallback(""); // cancel current speech (except for faded out messages)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue