Hack to prevent animation hangs during Conroy's song in Sam & Max.

svn-id: r5509
This commit is contained in:
Jamieson Christian
2002-11-10 18:29:59 +00:00
parent 4cf3def44b
commit afea2ba962
+10 -1
View File
@@ -2037,7 +2037,16 @@ void Scumm::o6_wait()
return;
}
case 169:
//printf("waiting for message: %d\n", _vars[VAR_HAVE_MSG]);
// HACK: For Conroy Bumpus' song in Sam & Max.
// During the song three calls to o6_wait() appear,
// but because of the way in which the actor talk is done
// and the fact that the song extends beyond the span
// of each individual line, no end-of-talk is ever
// detected and the script hangs on o6_wait().
if (_gameId == GID_SAMNMAX && vm.slot[_currentScript].number == 99 && _sound->isSoundRunning (64)) {
debug (2, "Sam & Max hack: Bypassing o6_wait() during Conroy's song.");
return;
}
if (_vars[VAR_HAVE_MSG])
break;