Permalink
Browse files

STARTREK: Allow engine to run without voc files

  • Loading branch information...
Drenn1 authored and sev- committed Jul 27, 2018
1 parent f412328 commit 42b228144ad5f19c412e24a8c98e536908748f95
Showing with 3 additions and 2 deletions.
  1. +1 −1 engines/startrek/awaymission.cpp
  2. +2 −1 engines/startrek/sound.cpp
@@ -495,7 +495,7 @@ SharedPtr<Room> StarTrekEngine::getRoom() {

void StarTrekEngine::addAction(const Action &action) {
if (action.type != ACTION_TICK)
debug("Action %d: %x, %x, %x", action.type, action.b1, action.b2, action.b3);
debugC(kDebugGeneral, 4, "Action %d: %x, %x, %x", action.type, action.b1, action.b2, action.b3);
_actionQueue.push(action);
}

@@ -64,7 +64,8 @@ Sound::Sound(StarTrekEngine *vm) : _vm(vm) {
}

if (!SearchMan.hasFile("voc/speech.mrk")) {
error("Couldn't find 'voc/speech.mrk'. The 'trekcd/voc/' directory must be dumped from the CD");
warning("Couldn't find 'voc/speech.mrk'. The 'trekcd/voc/' directory should be dumped from the CD. Continuing without CD audio");
_vm->_sfxWorking = false;
}

_playingSpeech = false;

0 comments on commit 42b2281

Please sign in to comment.