aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-04-06 20:57:58 +0000
committerTorbjörn Andersson2006-04-06 20:57:58 +0000
commit0f3aeb09ed6b43c695ee851119b59d6b4703685e (patch)
treeacfcdbcfde181439ee5f66464f298b264d7ed88d
parentc07f18650293520928270f58f8441c95ebbf5ee7 (diff)
downloadscummvm-rg350-0f3aeb09ed6b43c695ee851119b59d6b4703685e.tar.gz
scummvm-rg350-0f3aeb09ed6b43c695ee851119b59d6b4703685e.tar.bz2
scummvm-rg350-0f3aeb09ed6b43c695ee851119b59d6b4703685e.zip
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
-rw-r--r--engines/cine/bg.cpp4
1 files changed, 2 insertions, 2 deletions
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;