Permalink
Browse files

SCI: Fix LB2 Yvette/Tut missing sync resource (#1373)

Fixes a missing resource in the game. bug #9956
  • Loading branch information...
sluicebox authored and bluegr committed Dec 2, 2018
1 parent 58653c7 commit 62846769ad909737d21118781aeeda25317c70de
Showing with 6 additions and 0 deletions.
  1. +6 −0 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());
}
}

0 comments on commit 6284676

Please sign in to comment.