diff options
author | Filippos Karapetis | 2011-12-28 18:53:45 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-28 18:54:17 +0200 |
commit | eaed1b725a7720e5ca72d9c3d380c218c9e5ac6d (patch) | |
tree | c1db9f9255cb37825a27c52090cf252eee495568 /engines/dreamweb/stubs.cpp | |
parent | 63da2ac271723a33839414827a2f01ef6185490e (diff) | |
download | scummvm-rg350-eaed1b725a7720e5ca72d9c3d380c218c9e5ac6d.tar.gz scummvm-rg350-eaed1b725a7720e5ca72d9c3d380c218c9e5ac6d.tar.bz2 scummvm-rg350-eaed1b725a7720e5ca72d9c3d380c218c9e5ac6d.zip |
DREAMWEB: Replaced most isCD calls with calls checking for speech
This is quite useful for devices with limited storage, where the user
can use the CD version without its speech files
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index cf1eb4575e..d91eb242ff 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -935,8 +935,7 @@ void DreamWebEngine::useTimedText() { } void DreamWebEngine::setupTimedTemp(uint8 textIndex, uint8 voiceIndex, uint8 x, uint8 y, uint16 countToTimed, uint16 timeCount) { -#if 1 // if cd - TODO: replace with a proper CD check - if (voiceIndex != 0) { + if (hasSpeech() && voiceIndex != 0) { if (loadSpeech('T', voiceIndex, 'T', textIndex)) { playChannel1(50+12); } @@ -947,7 +946,6 @@ void DreamWebEngine::setupTimedTemp(uint8 textIndex, uint8 voiceIndex, uint8 x, if (_speechLoaded && !_subtitles) return; } -#endif if (_timeCount != 0) return; @@ -1661,14 +1659,6 @@ bool DreamWebEngine::isItDescribed(const ObjPos *pos) { return string[0] != 0; } -bool DreamWebEngine::isCD() { - // The original sources has two codepaths depending if the game is 'if cd' or not - // This is a hack to guess which version to use with the assumption that if we have a cd version - // we managed to load the speech. At least it is isolated in this function and can be changed. - // Maybe detect the version during game id? - return (_speechLoaded); -} - void DreamWebEngine::showIcon() { if (_realLocation < 50) { showPanel(); @@ -2532,7 +2522,7 @@ void DreamWebEngine::atmospheres() { if (_realLocation == 2 && _mapX == 22 && _mapY == 10) _volume = 5; // "louisvol" - if (isCD() && _realLocation == 14) { + if (hasSpeech() && _realLocation == 14) { if (_mapX == 33) { _volume = 0; // "ismad2" return; |