SCUMM: Make the Plunder Town Theater music workaround an optional enhancement

This is an original script bug that also happens with the original
EXE, and so this fix is an enhancement.
This commit is contained in:
Donovan Watteau 2023-01-18 19:46:49 +01:00
parent 13d2b1b1db
commit 3d608e10f6

View File

@ -749,7 +749,7 @@ void ScummEngine_v6::o6_startScript() {
// This fix checks for this situation happening (and only this one), and makes a call
// to a soundKludge operation like script 29 would have done.
if (_game.id == GID_CMI && _currentRoom == 19 &&
vm.slot[_currentScript].number == 168 && script == 118) {
vm.slot[_currentScript].number == 168 && script == 118 && _enableEnhancements) {
int list[16] = { 4096, 1278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
_sound->soundKludge(list, 2);
}