From 0f3aeb09ed6b43c695ee851119b59d6b4703685e Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 6 Apr 2006 20:57:58 +0000 Subject: Fixed another "worked in cinE, broken in ScummVM" bug that made it impossible to interact with the objects in the second room. We were passing the wrong pointer to gfxConvertSpriteToRaw() in loadCt(), causing page3Raw (which I believe is an "image" mapping screen coordinates to objects) to be wrong. svn-id: r21646 --- engines/cine/bg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/cine/bg.cpp b/engines/cine/bg.cpp index fc7010d955..0ff09c939d 100644 --- a/engines/cine/bg.cpp +++ b/engines/cine/bg.cpp @@ -58,13 +58,13 @@ byte loadCt(const char *ctName) { assert(strstr(ctName, ".NEO")); - memcpy(header, ptr, 32); ptr += 32; + memcpy(header, ptr, 32); for (int i = 0; i < 16; i++) { header[i] = TO_BE_16(header[i]); } - gfxConvertSpriteToRaw(page3Raw, ptr + 0x80 - 0x22, 160, 200); + gfxConvertSpriteToRaw(page3Raw, ptr + 0x80, 160, 200); } return 0; -- cgit v1.2.3