Very very big hack to kind-of make zak256 and indy3 capable of walking.

Please, for the love of god, someone fix this. :)

svn-id: r3628
This commit is contained in:
James Brown 2002-02-25 17:29:51 +00:00
parent abbc4bf289
commit 1e9a7c39fd

View File

@ -697,11 +697,14 @@ void Scumm::initRoomSubBlocks() {
memcpy(getResourceAddress(rtMatrix, 2), ptr, size);
ptr += size;
size = getResourceDataSize(ptr-size-6) - size;
if(size>=0)
{
if (_features & GF_OLD256) { // FIXME: Total hack.
createBoxMatrix(); // This function shouldn't
} else if(size>=0) { // do this :)
createResource(rtMatrix, 1, size);
memcpy(getResourceAddress(rtMatrix, 1), ptr, size);
}
}
} else {
ptr = findResourceData(MKID('BOXD'), roomptr);