From a32cae809b5b12c592510285f09e125f7bc9415c Mon Sep 17 00:00:00 2001 From: Kari Salminen Date: Sun, 17 Aug 2008 10:43:54 +0000 Subject: Forwardport of branch-0-12-0's r33966: Fix to Future Wars's rendering of type 0 overlays (i.e. color sprites). Objects with negative frame values are supposed to be jumped over (Verified with disassembly). svn-id: r33967 --- engines/cine/gfx.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/cine') diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp index cb900e8850..5aa94d8b7f 100644 --- a/engines/cine/gfx.cpp +++ b/engines/cine/gfx.cpp @@ -436,6 +436,9 @@ void FWRenderer::renderOverlay(const Common::List::iterator &it) { switch (it->type) { // color sprite case 0: + if (objectTable[it->objIdx].frame < 0) { + return; + } sprite = &animDataTable[objectTable[it->objIdx].frame]; len = sprite->_realWidth * sprite->_height; mask = new byte[len]; -- cgit v1.2.3