From 2fa8ac0575e45ddfee96e3cd1eba2f2d9c3d2db3 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Wed, 26 May 2010 17:15:49 +0000 Subject: SCI: adding another workaround for picture 376 in sq4/cd (same issue like originally found in r49216) svn-id: r49247 --- engines/sci/graphics/picture.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'engines/sci/graphics') diff --git a/engines/sci/graphics/picture.cpp b/engines/sci/graphics/picture.cpp index 3edb8ab18e..a59153f116 100644 --- a/engines/sci/graphics/picture.cpp +++ b/engines/sci/graphics/picture.cpp @@ -533,10 +533,16 @@ void GfxPicture::drawVectorData(byte *data, int dataSize) { case PIC_OP_SET_PATTERN: if (_resourceType >= SCI_PICTURE_TYPE_SCI11) { if (strcmp(g_sci->getGameID(), "sq4") == 0) { - // WORKAROUND: For SQ4 / picture 381 handle this like a terminator + // WORKAROUND: For SQ4 / for some pictures handle this like a terminator // This picture includes garbage data, first a set pattern w/o parameter and then short pattern - if (_resourceId == 381) + // I guess that garbage is a left over from the sq4-floppy (sci1) to sq4-cd (sci1.1) conversion + switch (_resourceId) { + case 381: + case 376: return; + default: + break; + } } error("pic-operation set pattern inside sci1.1+ vector data"); } -- cgit v1.2.3