aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions
diff options
context:
space:
mode:
authorEric Fry2018-06-01 20:52:34 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit7b88bd8efe25fe3092e190d5fed16990c69e2849 (patch)
tree1b5b75107b96944c4709871e250a2f3e840b177b /engines/illusions
parent423a8ec43351d1cbba84b67ad1c038ea4ca4e108 (diff)
downloadscummvm-rg350-7b88bd8efe25fe3092e190d5fed16990c69e2849.tar.gz
scummvm-rg350-7b88bd8efe25fe3092e190d5fed16990c69e2849.tar.bz2
scummvm-rg350-7b88bd8efe25fe3092e190d5fed16990c69e2849.zip
ILLUSIONS: Add more logging
Add todo to check named point on opAppearForeignActor
Diffstat (limited to 'engines/illusions')
-rw-r--r--engines/illusions/actor.cpp1
-rw-r--r--engines/illusions/resources/actorresource.cpp2
-rw-r--r--engines/illusions/sequenceopcodes.cpp2
3 files changed, 3 insertions, 2 deletions
diff --git a/engines/illusions/actor.cpp b/engines/illusions/actor.cpp
index dba119550d..74d57d32b7 100644
--- a/engines/illusions/actor.cpp
+++ b/engines/illusions/actor.cpp
@@ -1033,6 +1033,7 @@ void Controls::placeBackgroundObject(BackgroundObject *backgroundObject) {
control->activateObject();
_controls.push_front(control);
_vm->_dict->setObjectControl(control->_objectId, control);
+ debug(0, "Added background control. objectId: %08X", control->_objectId);
}
void Controls::placeActor(uint32 actorTypeId, Common::Point placePt, uint32 sequenceId, uint32 objectId, uint32 notifyThreadId) {
diff --git a/engines/illusions/resources/actorresource.cpp b/engines/illusions/resources/actorresource.cpp
index 2152b7793c..59e2294c6e 100644
--- a/engines/illusions/resources/actorresource.cpp
+++ b/engines/illusions/resources/actorresource.cpp
@@ -123,7 +123,7 @@ void ActorResource::load(Resource *resource) {
_actorTypes.push_back(actorType);
}
- // Load sequences
+ // Load sequences
stream.seek(0x08);
uint sequencesCount = stream.readUint16LE();
stream.seek(0x14);
diff --git a/engines/illusions/sequenceopcodes.cpp b/engines/illusions/sequenceopcodes.cpp
index b07e9ecbaa..53c72b9a28 100644
--- a/engines/illusions/sequenceopcodes.cpp
+++ b/engines/illusions/sequenceopcodes.cpp
@@ -253,7 +253,7 @@ void SequenceOpcodes::opAppearForeignActor(Control *control, OpCall &opCall) {
ARG_INT16(foreignObjectNum);
Control *foreignControl = _vm->_dict->getObjectControl(foreignObjectNum | 0x40000);
if (!foreignControl) {
- Common::Point pos = _vm->getNamedPointPosition(0x00070023);
+ Common::Point pos = _vm->getNamedPointPosition(0x00070023); // TODO Eric check this. duckman looks to be using 0x70001
_vm->_controls->placeActor(0x00050001, pos, 0x00060001, foreignObjectNum | 0x40000, 0);
foreignControl = _vm->_dict->getObjectControl(foreignObjectNum | 0x40000);
}