mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
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:
parent
c9d22c69a2
commit
22e979de21
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user