Add flObject lock/unlock support for HE games.

svn-id: r17474
This commit is contained in:
Travis Howell 2005-04-09 09:57:54 +00:00
parent 866e0c8613
commit db43946f05
2 changed files with 18 additions and 9 deletions

View file

@ -1214,13 +1214,13 @@ void ScummEngine_v8::o8_kernelSetFunctions() {
case 11: { // lockObject
int objidx = getObjectIndex(args[1]);
assert(objidx != -1);
res.lock(rtFlObject, objidx);
res.lock(rtFlObject, _objs[objidx].fl_object_index);
break;
}
case 12: { // unlockObject
int objidx = getObjectIndex(args[1]);
assert(objidx != -1);
res.unlock(rtFlObject, objidx);
res.unlock(rtFlObject, _objs[objidx].fl_object_index);
break;
}
case 13: // remapCostume