aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2005-05-13 01:55:07 +0000
committerTravis Howell2005-05-13 01:55:07 +0000
commit0f412efc8db49efa10a351339dcefab9b55a238b (patch)
treeea862a854d3e88c28e807e8d040edf1d5bd74e45 /scumm
parent5c228fc028e7ef61b0db0ea65ecf429c5b468a94 (diff)
downloadscummvm-rg350-0f412efc8db49efa10a351339dcefab9b55a238b.tar.gz
scummvm-rg350-0f412efc8db49efa10a351339dcefab9b55a238b.tar.bz2
scummvm-rg350-0f412efc8db49efa10a351339dcefab9b55a238b.zip
Cases apply to rtRoomImage in He70+ too.
svn-id: r18076
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v7he.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp
index 91d8f214fa..5cf9ff5337 100644
--- a/scumm/script_v7he.cpp
+++ b/scumm/script_v7he.cpp
@@ -527,6 +527,7 @@ void ScummEngine_v70he::o70_resourceRoutines() {
break;
case 103: // SO_LOAD_ROOM
resid = pop();
+ ensureResourceLoaded(rtRoomImage, resid);
ensureResourceLoaded(rtRoom, resid);
break;
case 104: // SO_NUKE_SCRIPT
@@ -544,6 +545,7 @@ void ScummEngine_v70he::o70_resourceRoutines() {
case 107: // SO_NUKE_ROOM
resid = pop();
res.setResourceCounter(rtRoom, resid, 0x7F);
+ res.setResourceCounter(rtRoomImage, resid, 0x7F);
break;
case 108: // SO_LOCK_SCRIPT
resid = pop();
@@ -564,6 +566,7 @@ void ScummEngine_v70he::o70_resourceRoutines() {
if (resid > 0x7F)
resid = _resourceMapper[resid & 0x7F];
res.lock(rtRoom, resid);
+ res.lock(rtRoomImage, resid);
break;
case 112: // SO_UNLOCK_SCRIPT
resid = pop();
@@ -584,6 +587,7 @@ void ScummEngine_v70he::o70_resourceRoutines() {
if (resid > 0x7F)
resid = _resourceMapper[resid & 0x7F];
res.unlock(rtRoom, resid);
+ res.unlock(rtRoomImage, resid);
break;
case 116:
break;