Files
scummvm/engines/agos
Coen Rampen 0fafb0ee19 AGOS: Fix Waxworks crash when playing digital SFX
Waxworks DOS has both digital and limited MIDI SFX. The game scripts use two
different opcodes for trigging digital and MIDI SFX; if a sound effect has both
a digital and a MIDI version, both opcodes are triggered. When digital SFX are
active, ScummVM would try to handle both the digital and the MIDI opcode by
playing a digital SFX. This would crash the game if the MIDI SFX ID was invalid
as a digital SFX ID. Strangely enough, this bug also seems to affect the Amiga
version. Apparently both opcodes are still in the scripts of this version, even
though it does not support MIDI at all AFAIK.

This commit fixes the issue by only playing the MIDI SFX if digital SFX are
turned off and ignoring them otherwise.
2022-08-05 22:16:43 +02:00
..
2022-08-04 21:50:46 +02:00
2022-05-09 17:19:42 +02:00
2022-05-28 12:32:29 +02:00
2022-08-04 21:50:46 +02:00
2022-05-09 20:21:00 +02:00
2022-05-16 12:18:11 +02:00
2022-02-18 19:56:20 +00:00