Add some differences in C64 maniac.

svn-id: r18166
This commit is contained in:
Travis Howell 2005-05-18 15:30:31 +00:00
parent 4aac7819d1
commit b6da09d4fe
4 changed files with 137 additions and 15 deletions

View file

@ -704,7 +704,11 @@ void ScummEngine_v4::setupRoomObject(ObjectData *od, const byte *room, const byt
if (_features & GF_OLD_BUNDLE)
ptr -= 2;
od->obj_nr = READ_LE_UINT16(ptr + 6);
if (_gameId == GID_MANIAC && _platform == Common::kPlatformC64) {
od->obj_nr = *(ptr + 7);
} else {
od->obj_nr = READ_LE_UINT16(ptr + 6);
}
od->x_pos = *(ptr + 9) * 8;
od->y_pos = ((*(ptr + 10)) & 0x7F) * 8;