SCI: Fixed a long-standing bug in kDoSound(init)

The sound handle should not be set in kDoSound(init), but in
kDoSound(play). This is verified against several SCI versions,
plus game scripts check if a sound slot is playing primarily
by checking its handle. Fixes the sound in Shivers and probably
an assortment of other sound related bugs
This commit is contained in:
Filippos Karapetis 2011-10-12 12:48:18 +03:00
parent 497c3e75b4
commit 0166665926

View file

@ -133,8 +133,6 @@ void SoundCommandParser::processInitSound(reg_t obj) {
writeSelectorValue(_segMan, obj, SELECTOR(state), kSoundInitialized);
else
writeSelector(_segMan, obj, SELECTOR(nodePtr), obj);
writeSelector(_segMan, obj, SELECTOR(handle), obj);
}
}