From 62846769ad909737d21118781aeeda25317c70de Mon Sep 17 00:00:00 2001 From: sluicebox Date: Sun, 2 Dec 2018 13:21:28 -0800 Subject: SCI: Fix LB2 Yvette/Tut missing sync resource (#1373) Fixes a missing resource in the game. bug #9956--- engines/sci/resource_audio.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/sci') diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp index 6a1b57cd5b..2e885666b6 100644 --- a/engines/sci/resource_audio.cpp +++ b/engines/sci/resource_audio.cpp @@ -476,6 +476,12 @@ int ResourceManager::readAudioMapSCI11(IntMapResourceSource *map) { // FIXME: The sync36 resource seems to be two bytes too big in KQ6CD // (bytes taken from the RAVE resource right after it) if (syncSize > 0) { + // LB2CD is missing the sync resource for message 1885 1 6 30 2 but it's a duplicate + // of 1885 1 6 16 2 which does have a sync resource so use that for both. bug #9956 + if (g_sci->getGameId() == GID_LAURABOW2 && map->_mapNumber == 1885 && n == 0x01061002) { + addResource(ResourceId(kResourceTypeSync36, map->_mapNumber, 0x01061e02), src, offset, syncSize, map->getLocationName()); + } + addResource(ResourceId(kResourceTypeSync36, map->_mapNumber, n & 0xffffff3f), src, offset, syncSize, map->getLocationName()); } } -- cgit v1.2.3