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

sev- noreply at scummvm.org
Tue Nov 10 18:15:46 UTC 2026


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

Summary:
b7905cc201 GOB: Fix compilation with TTS disabled


Commit: b7905cc2013c241ae2f33774ba0892edaf26a4b1
    https://github.com/scummvm/scummvm/commit/b7905cc2013c241ae2f33774ba0892edaf26a4b1
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-11-10T19:15:24+01:00

Commit Message:
GOB: Fix compilation with TTS disabled

Changed paths:
    engines/gob/draw_v2.cpp


diff --git a/engines/gob/draw_v2.cpp b/engines/gob/draw_v2.cpp
index bbde19abae8..0a380b76dd8 100644
--- a/engines/gob/draw_v2.cpp
+++ b/engines/gob/draw_v2.cpp
@@ -632,12 +632,12 @@ void Draw_v2::printTotText(int16 id) {
 		}
 	}
 
+#ifdef USE_TTS
 	logText.trim();
 	if (!logText.empty() && DebugMan.isDebugChannelEnabled(kDebugGraphics))
 		debugC(1, kDebugGraphics, "TotText %d%s: %s", id, isSubtitle ? " (subtitle)" : "",
 		       logText.decode(_vm->_ttsEncoding).encode(Common::kUtf8).c_str());
 
-#ifdef USE_TTS
 	if (_previousTot != ttsMessage && !isSubtitle) {
 		if (_vm->_game->_hotspots->hoveringOverHotspot()) {
 			_vm->sayText(ttsMessage);
@@ -898,7 +898,7 @@ void Draw_v2::spriteOperation(int16 operation, bool ttsAddHotspotText) {
 		// slowly voicing each character
 		if (_vm->getGameType() == kGameTypeWeen && _vm->isCurrentTot("edit.tot")) {
 			_vm->stopTextToSpeech();
-			
+
 			if (!_vm->_weenVoiceNotepad) {
 				ttsAddHotspotText = false;
 			}




More information about the Scummvm-git-logs mailing list