Skip to content

Commit

Permalink
HOPKINS: Remove verbose error messages when the English demo skips th…
Browse files Browse the repository at this point in the history
…e speech loading
  • Loading branch information
Strangerke committed Feb 22, 2013
1 parent 5297f63 commit 9a535ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engines/hopkins/script.cpp
Expand Up @@ -142,7 +142,7 @@ int ScriptManager::handleOpcode(byte *dataP) {
}
if (!_vm->_soundManager._voiceOffFl)
_vm->_soundManager.mixVoice(mesgId, 4, displayedTxtFl);
} else { // if (TRAVAILOBJET)
} else { // if (_tempObjectFl)
if (_vm->_globals._saveData->_data[svField356]) {
_vm->_fontManager.initTextBuffers(9, 635, _vm->_globals._textFilename, 55, 20, dataP[8], 35, 253);
bool displayedTxtFl = false;
Expand Down
4 changes: 2 additions & 2 deletions engines/hopkins/sound.cpp
Expand Up @@ -579,7 +579,6 @@ bool SoundManager::mixVoice(int voiceId, int voiceMode, bool dispTxtFl) {

oldMusicVol = _musicVolume;
if (!loadVoice(filename, catPos, catLen, _sWav[20])) {
warning("Couldn't load sample: %s", filename.c_str());
_sWav[20]._active = false;
} else {
_sWav[20]._active = true;
Expand Down Expand Up @@ -772,7 +771,8 @@ bool SoundManager::loadVoice(const Common::String &filename, size_t fileOffset,
if (!f.open(filename)) {
// Fallback to APC...
if (!f.open(setExtension(filename, ".APC"))) {
warning("Could not open %s for reading", filename.c_str());
if (!_vm->getIsDemo())
error("Could not open %s for reading", filename.c_str());
return false;
}
}
Expand Down

0 comments on commit 9a535ac

Please sign in to comment.