- some fixes for previous commit (incrementation of sampleResourceId)

- previous commit also introduce sound speech of first scene in ITE DOS version

svn-id: r16240
This commit is contained in:
Andrew Kurushin 2004-12-21 10:30:49 +00:00
parent 839fc0df83
commit 412df729a2

View File

@ -243,8 +243,10 @@ void Actor::handleSpeech(int msec) {
}
}
if (_activeSpeech.sampleResourceId != -1)
if (_activeSpeech.sampleResourceId != -1) {
_vm->_sndRes->playVoice(_activeSpeech.sampleResourceId);
_activeSpeech.sampleResourceId++;
}
if (_activeSpeech.actorIds[0] != 0) {
actor = getActor(_activeSpeech.actorIds[0]);