From a297ae6195977530182c7e48b515f07e919348f0 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 28 Sep 2012 01:49:37 +0300 Subject: PARALLACTION: Add a workaround for the end credits of NS The game scripts try to show a non-existing frame. We set it to an existing one here. Part of the fixes for bug #5866 --- engines/parallaction/gfxbase.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines') diff --git a/engines/parallaction/gfxbase.cpp b/engines/parallaction/gfxbase.cpp index 8ef3c0fabf..a9889cc7af 100644 --- a/engines/parallaction/gfxbase.cpp +++ b/engines/parallaction/gfxbase.cpp @@ -226,6 +226,11 @@ void Gfx::drawGfxObject(GfxObj *obj, Graphics::Surface &surf) { rect.translate(x, y); data = obj->getData(obj->frame); + // WORKAROUND: During the end credits, game scripts try to show a + // non-existing frame. We change it to an existing one here. + if (obj->frame == 14 && obj->getNum() == 9 && !strcmp(obj->getName(), "Dinor")) + obj->frame = 8; + if (obj->getSize(obj->frame) == obj->getRawSize(obj->frame)) { blt(rect, data, &surf, obj->layer, obj->scale, obj->transparentKey); } else { -- cgit v1.2.3