[Scummvm-git-logs] scummvm master -> e821511050c91ee0929a455eaea007c720200c53

digitall 547637+digitall at users.noreply.github.com
Sun Jul 18 04:32:24 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e821511050 CGE: Fix Misleading Indentation GCC Warnings from TTS Addition


Commit: e821511050c91ee0929a455eaea007c720200c53
    https://github.com/scummvm/scummvm/commit/e821511050c91ee0929a455eaea007c720200c53
Author: D G Turner (digitall at scummvm.org)
Date: 2021-07-18T05:31:51+01:00

Commit Message:
CGE: Fix Misleading Indentation GCC Warnings from TTS Addition

Changed paths:
    engines/cge/cge.cpp
    engines/cge/talk.cpp


diff --git a/engines/cge/cge.cpp b/engines/cge/cge.cpp
index 4304050902..eaf592792d 100644
--- a/engines/cge/cge.cpp
+++ b/engines/cge/cge.cpp
@@ -224,8 +224,9 @@ Common::Error CGEEngine::run() {
 			GUI::MessageDialog dialog(msg);
 			dialog.runModal();
 			Common::TextToSpeechManager *ttsMan = g_system->getTextToSpeechManager();
-			if (ttsMan != nullptr && ConfMan.getBool("tts_enabled"))
+			if (ttsMan != nullptr && ConfMan.getBool("tts_enabled")) {
 				ttsMan->say(msg);
+			}
 		}
 	}
 
diff --git a/engines/cge/talk.cpp b/engines/cge/talk.cpp
index 7b72dda547..7669ebb96c 100644
--- a/engines/cge/talk.cpp
+++ b/engines/cge/talk.cpp
@@ -95,9 +95,10 @@ const char *lastText = "";
 
 void textToSpeech(const char *text) {
 	Common::TextToSpeechManager *ttsMan = g_system->getTextToSpeechManager();
-	if (lastText != text && ttsMan != nullptr && ConfMan.getBool("tts_enabled"))
+	if (lastText != text && ttsMan != nullptr && ConfMan.getBool("tts_enabled")) {
 		ttsMan->say(text, Common::TextToSpeechManager::INTERRUPT);
 		lastText = text;
+	}
 }
 
 void Talk::update(const char *text) {




More information about the Scummvm-git-logs mailing list