still don't know how the o5_startMusic opcode works in Zak (if it is even music releated), but this way makes more sense (thanks to Hibernatus)

svn-id: r8643
This commit is contained in:
Max Horn 2003-06-24 17:31:35 +00:00
parent c9d22c69a2
commit 22e979de21

View File

@ -2011,11 +2011,15 @@ void Scumm_v5::o5_setVarRange() {
}
void Scumm_v5::o5_startMusic() {
_sound->addSoundToQueue(getVarOrDirectByte(0x80));
int snd;
if (_gameId == GID_ZAK256) {
int a = fetchScriptByte();
int b = fetchScriptByte();
warning("Just skipped two bytes of unknown meaning: %d, %d", a, b);
getResultPos();
snd = getVarOrDirectByte(0x80);
warning("unknown: o5_startMusic(%d)", snd);
setResult(0);
} else {
snd = getVarOrDirectByte(0x80);
_sound->addSoundToQueue(snd);
}
}