diff options
author | Colin Snover | 2016-11-03 13:13:35 -0500 |
---|---|---|
committer | Colin Snover | 2016-11-03 13:14:58 -0500 |
commit | 42ebd5a66449121f8aa68f0e35f3f03b137ece63 (patch) | |
tree | bc16e9046a83d96630d3baaf2418899e6cda8ab5 /engines/sci | |
parent | 1b037c413b2ec30fb6026ba18a2295557421818c (diff) | |
download | scummvm-rg350-42ebd5a66449121f8aa68f0e35f3f03b137ece63.tar.gz scummvm-rg350-42ebd5a66449121f8aa68f0e35f3f03b137ece63.tar.bz2 scummvm-rg350-42ebd5a66449121f8aa68f0e35f3f03b137ece63.zip |
SCI32: Allow SCI32 games to update speech & subtitles settings
Fixes Trac#9637.
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/sci.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 246c031c06..e89d05217c 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -1166,7 +1166,9 @@ void SciEngine::syncIngameAudioOptions() { void SciEngine::updateScummVMAudioOptions() { // Update ScummVM's speech/subtitles settings for SCI1.1 CD games, // depending on the in-game settings - if (isCD() && getSciVersion() == SCI_VERSION_1_1) { + if ((isCD() && getSciVersion() == SCI_VERSION_1_1) || + getSciVersion() >= SCI_VERSION_2) { + uint16 ingameSetting = _gamestate->variables[VAR_GLOBAL][kGlobalVarMessageType].getOffset(); switch (ingameSetting) { |