aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/text_lol.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-06-21 19:00:50 +0000
committerJohannes Schickel2009-06-21 19:00:50 +0000
commit76eee406d63b7f614bd3f6e8e5e3f70aff97c921 (patch)
tree62e0d722da395b1bfb048f454f830286da4fb369 /engines/kyra/text_lol.cpp
parent5b0b0051c15ff23ed8daf801d4b56cbaadf2f101 (diff)
downloadscummvm-rg350-76eee406d63b7f614bd3f6e8e5e3f70aff97c921.tar.gz
scummvm-rg350-76eee406d63b7f614bd3f6e8e5e3f70aff97c921.tar.bz2
scummvm-rg350-76eee406d63b7f614bd3f6e8e5e3f70aff97c921.zip
Cleanup: Change LoL code to use KYRA volume handling.
svn-id: r41730
Diffstat (limited to 'engines/kyra/text_lol.cpp')
-rw-r--r--engines/kyra/text_lol.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/text_lol.cpp b/engines/kyra/text_lol.cpp
index db32cdc12a..98aaef7f96 100644
--- a/engines/kyra/text_lol.cpp
+++ b/engines/kyra/text_lol.cpp
@@ -608,7 +608,7 @@ void TextDisplayer_LoL::textPageBreak() {
}
uint32 speechPartTime = 0;
- if (_vm->_speechVolume && _vm->_activeVoiceFileTotalTime && _numCharsTotal)
+ if (_vm->speechEnabled() && _vm->_activeVoiceFileTotalTime && _numCharsTotal)
speechPartTime = _vm->_system->getMillis() + ((_numCharsPrinted * _vm->_activeVoiceFileTotalTime) / _numCharsTotal);
const ScreenDim *dim = _screen->getScreenDim(_screen->curDimIndex());
@@ -643,7 +643,7 @@ void TextDisplayer_LoL::textPageBreak() {
while (!inputFlag) {
_vm->update();
- if (_vm->_speechVolume) {
+ if (_vm->speechEnabled()) {
if (((_vm->_system->getMillis() > speechPartTime) || (_vm->snd_updateCharacterSpeech() != 2)) && speechPartTime) {
loop = false;
inputFlag = 43;