From 2d75c6b271e71168bb42024606f4b7fc510d1751 Mon Sep 17 00:00:00 2001 From: Vhati Date: Mon, 24 Dec 2018 09:30:44 -0500 Subject: SCI32: Fix QFG4 Rusalka flowers dialogue Fixes mixed up text/audio when giving her flowers, bug #10849 --- engines/sci/resource_audio.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/sci/resource_audio.cpp') diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp index 61628081b2..dfc3d2fcfb 100644 --- a/engines/sci/resource_audio.cpp +++ b/engines/sci/resource_audio.cpp @@ -468,6 +468,14 @@ int ResourceManager::readAudioMapSCI11(IntMapResourceSource *map) { n = 0x17010001; } + // QFG4CD has an orphaned audio36 resource that additionally has the wrong tuple. + // The audio36 tuple is 520 2 59 0 3. The message would be 520 2 59 0 2. bug #10849 + // We restore the missing message in message.cpp. + if (g_sci->getGameId() == GID_QFG4 && g_sci->isCD() && + map->_mapNumber == 520 && n == 0x023b0003) { + n = 0x023b0002; + } + if (isEarly) { offset = ptr.getUint32LE(); ptr += 4; -- cgit v1.2.3