From 71ca768c675ec1dc1700e5709bf5b7b55619023e Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 10 Jul 2003 10:36:24 +0000 Subject: abide by command line request for no subtitles if running the cd version svn-id: r8898 --- sky/sky.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sky') diff --git a/sky/sky.cpp b/sky/sky.cpp index 6bc10f5820..7c14ea35c7 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -223,9 +223,12 @@ void SkyState::initialise(void) { _system->property(OSystem::PROP_TOGGLE_FULLSCREEN, 0); } - if (isCDVersion()) - _systemVars.systemFlags |= SF_ALLOW_SPEECH | SF_ALLOW_TEXT; - else + if (isCDVersion()) { + if (_detector->_noSubtitles) + _systemVars.systemFlags |= SF_ALLOW_SPEECH; + else + _systemVars.systemFlags |= SF_ALLOW_SPEECH | SF_ALLOW_TEXT; + } else _systemVars.systemFlags |= SF_ALLOW_TEXT; _systemVars.systemFlags |= SF_PLAY_VOCS; -- cgit v1.2.3