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/talk.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/talk.cpp')
-rw-r--r-- | engines/dreamweb/talk.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/dreamweb/talk.cpp b/engines/dreamweb/talk.cpp index 56826e70bb..2899e81d00 100644 --- a/engines/dreamweb/talk.cpp +++ b/engines/dreamweb/talk.cpp @@ -98,15 +98,15 @@ void DreamWebEngine::startTalk() { y = 80; printDirect(&str, 66, &y, 241, true); -#if 1 // if cd - TODO: replace with a proper CD check - _speechLoaded = false; - loadSpeech('R', _realLocation, 'C', 64*(_character & 0x7F)); - if (_speechLoaded) { - _volumeDirection = 1; - _volumeTo = 6; - playChannel1(50 + 12); + if (hasSpeech()) { + _speechLoaded = false; + loadSpeech('R', _realLocation, 'C', 64*(_character & 0x7F)); + if (_speechLoaded) { + _volumeDirection = 1; + _volumeTo = 6; + playChannel1(50 + 12); + } } -#endif } const uint8 *DreamWebEngine::getPersonText(uint8 index, uint8 talkPos) { |