diff options
author | Travis Howell | 2005-04-10 06:17:49 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-10 06:17:49 +0000 |
commit | 5b802a03e5c248ae14eab01233a86132ac278db4 (patch) | |
tree | 38ef25fc3874cb8f1678ea7e07a986806ea3955b /scumm/script_v100he.cpp | |
parent | 02a724a619b027c4f1fbaaf148064c33c0c4fce1 (diff) | |
download | scummvm-rg350-5b802a03e5c248ae14eab01233a86132ac278db4.tar.gz scummvm-rg350-5b802a03e5c248ae14eab01233a86132ac278db4.tar.bz2 scummvm-rg350-5b802a03e5c248ae14eab01233a86132ac278db4.zip |
Enable object lock/unlock in HE 100 too.
Add comments
svn-id: r17503
Diffstat (limited to 'scumm/script_v100he.cpp')
-rw-r--r-- | scumm/script_v100he.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/scumm/script_v100he.cpp b/scumm/script_v100he.cpp index 19f893c22a..3430936c68 100644 --- a/scumm/script_v100he.cpp +++ b/scumm/script_v100he.cpp @@ -1075,7 +1075,7 @@ void ScummEngine_v100he::o100_setSpriteGroupInfo() { } void ScummEngine_v100he::o100_resourceRoutines() { - int obj, objidx, room; + int objidx, room; byte subOp = fetchScriptByte(); @@ -1098,9 +1098,8 @@ void ScummEngine_v100he::o100_resourceRoutines() { break; case 47: if (_heResType == rtFlObject) { - obj = _heResId; - room= getObjectRoom(obj); - loadFlObject(obj, room); + room = getObjectRoom(_heResId); + loadFlObject(_heResId, room); } else if (_heResType == rtCharset) { loadCharset(_heResId); } else { @@ -1127,8 +1126,9 @@ void ScummEngine_v100he::o100_resourceRoutines() { if (_heResType == rtFlObject) { objidx = getObjectIndex(_heResId); - //assert(objidx != -1); - //res.lock(_heResType, objidx); + if (objidx == -1) + break; + res.lock(rtFlObject, _objs[objidx].fl_object_index); } else { res.lock(_heResType, _heResId); } @@ -1144,7 +1144,7 @@ void ScummEngine_v100he::o100_resourceRoutines() { // Heap related break; case 136: - debug(5,"stub queueload (%d) resource %d", _heResType, _heResId); + // Queue loading break; case 137: if (_heResType == rtScript && _heResId >= _numGlobalScripts) @@ -1152,8 +1152,9 @@ void ScummEngine_v100he::o100_resourceRoutines() { if (_heResType == rtFlObject) { objidx = getObjectIndex(_heResId); - //assert(objidx != -1); - //res.unlock(_heResType, objidx); + if (objidx == -1) + break; + res.unlock(rtFlObject, _objs[objidx].fl_object_index); } else { res.unlock(_heResType, _heResId); } |