aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/backgroundresource.cpp
diff options
context:
space:
mode:
authorjohndoe1232014-03-15 21:57:51 +0100
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit9385238a59dc5e1790a21a8f9eaf761fc93a660e (patch)
tree879bc7a15e354d2a15e0a041bca7c0f825286f02 /engines/illusions/backgroundresource.cpp
parent9a63f0bd17b5c8fab468a61c09cdc29cedf287a5 (diff)
downloadscummvm-rg350-9385238a59dc5e1790a21a8f9eaf761fc93a660e.tar.gz
scummvm-rg350-9385238a59dc5e1790a21a8f9eaf761fc93a660e.tar.bz2
scummvm-rg350-9385238a59dc5e1790a21a8f9eaf761fc93a660e.zip
ILLUSIONS: More work on actor related code
- Add isTimerExpired function
Diffstat (limited to 'engines/illusions/backgroundresource.cpp')
-rw-r--r--engines/illusions/backgroundresource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/illusions/backgroundresource.cpp b/engines/illusions/backgroundresource.cpp
index 89f91655f0..aef2a4ca9e 100644
--- a/engines/illusions/backgroundresource.cpp
+++ b/engines/illusions/backgroundresource.cpp
@@ -46,8 +46,8 @@ void BackgroundResourceLoader::load(Resource *resource) {
// TODO Insert IDs from item48s
// TODO camera_fadeClear();
- // TODO bgInfo = &bgResourceb->bgInfos[(unsigned __int16)BgResource_findMasterBgIndex(bgResourceb)];
- // TODO camera_set(bgInfo[-1].panPoint, bgInfo[-1].surfInfo.dimensions);
+ int index = backgroundItem->_bgRes->findMasterBgIndex();
+ _vm->_camera->set(backgroundItem->_bgRes->_bgInfos[index - 1]._panPoint, backgroundItem->_bgRes->_bgInfos[index - 1]._surfInfo._dimensions);
// NOTE Skipped palette loading (not used in BBDOU)
}