From 46e27b6293c0de767c9713c08e89e63dcf52fcc3 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 16 May 2015 22:48:24 -0400 Subject: SHERLOCK: Update CAnim loading for Rose Tattoo --- engines/sherlock/scene.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/sherlock/scene.cpp') diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp index 034896486e..0ac2eec0ff 100644 --- a/engines/sherlock/scene.cpp +++ b/engines/sherlock/scene.cpp @@ -398,13 +398,14 @@ bool Scene::loadScene(const Common::String &filename) { // Load in cAnim list _cAnim.clear(); if (bgHeader._numcAnimations) { + int animSize = _vm->getGameID() == GType_SerratedScalpel ? 65 : 47; Common::SeekableReadStream *canimStream = _lzwMode ? - Resources::decompressLZ(*rrmStream, 65 * bgHeader._numcAnimations) : - rrmStream->readStream(65 * bgHeader._numcAnimations); + res.decompress(*rrmStream, animSize * bgHeader._numcAnimations) : + rrmStream->readStream(animSize * bgHeader._numcAnimations); _cAnim.resize(bgHeader._numcAnimations); for (uint idx = 0; idx < _cAnim.size(); ++idx) - _cAnim[idx].load(*canimStream); + _cAnim[idx].load(*canimStream, _vm->getGameID() == GType_RoseTattoo); delete canimStream; } -- cgit v1.2.3