diff options
author | D G Turner | 2011-12-27 03:34:54 +0000 |
---|---|---|
committer | D G Turner | 2011-12-27 03:34:54 +0000 |
commit | 7db571812ac5786d6e5a676a4b792ff440d79cbe (patch) | |
tree | cf9ab4a8186073a00947adae7cfbc9fd789093aa /engines/dreamweb | |
parent | 5cfa1899bdea96a2e1dc505b4cfdbbe96ae13c02 (diff) | |
download | scummvm-rg350-7db571812ac5786d6e5a676a4b792ff440d79cbe.tar.gz scummvm-rg350-7db571812ac5786d6e5a676a4b792ff440d79cbe.tar.bz2 scummvm-rg350-7db571812ac5786d6e5a676a4b792ff440d79cbe.zip |
DREAMWEB: Move kSubtitles out of data blob.
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/dreambase.h | 1 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 2 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 3 | ||||
-rw-r--r-- | engines/dreamweb/sound.cpp | 2 | ||||
-rw-r--r-- | engines/dreamweb/stubs.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/engines/dreamweb/dreambase.h b/engines/dreamweb/dreambase.h index 6c09d41f1c..23714ad801 100644 --- a/engines/dreamweb/dreambase.h +++ b/engines/dreamweb/dreambase.h @@ -115,6 +115,7 @@ public: DreamBase(DreamWeb::DreamWebEngine *en); bool _quitRequested; + bool _subtitles; // from backdrop.cpp void doBlocks(); diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index ce871c4b71..eda7dce35a 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -75,7 +75,7 @@ void DreamGenContext::__start() { //0x0150: .... .... .... .... 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x0160: .... .... .... .... - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, }; + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, }; ds.assign(src, src + sizeof(src)); dreamweb(); } diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index 66c6aef806..b608cfa967 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -307,8 +307,7 @@ static const uint16 kCh1playing = 374; static const uint16 kCh1blockstocopy = 375; static const uint16 kCurrentsample = 377; static const uint16 kRoomssample = 378; -static const uint16 kSubtitles = 379; -static const uint16 kForeignrelease = 380; +static const uint16 kForeignrelease = 379; static const uint16 kBlocktextdat = (0); static const uint16 kPersonframes = (0); static const uint16 kDebuglevel1 = (0); diff --git a/engines/dreamweb/sound.cpp b/engines/dreamweb/sound.cpp index 247935b8f8..289bca9aea 100644 --- a/engines/dreamweb/sound.cpp +++ b/engines/dreamweb/sound.cpp @@ -204,7 +204,7 @@ bool DreamWebEngine::loadSpeech(const Common::String &filename) { } void DreamWebEngine::soundHandler() { - _base.data.byte(DreamGen::kSubtitles) = ConfMan.getBool("subtitles"); + _base._subtitles = ConfMan.getBool("subtitles"); _base.volumeAdjust(); uint volume = _base.data.byte(DreamGen::kVolume); diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 1ef1e5e588..2b9103408a 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -893,7 +893,7 @@ void DreamBase::setupTimedTemp(uint8 textIndex, uint8 voiceIndex, uint8 x, uint8 // FIXME: This fallthrough does not properly support subtitles+speech // mode. The parameters to setuptimedtemp() are sometimes different // for speech and for subtitles. See e.g., madmantext() - if ((data.byte(kSpeechloaded) == 1) && (data.byte(kSubtitles) != 1)) + if ((data.byte(kSpeechloaded) == 1) && !_subtitles) return; } #endif |