aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorjohndoe1232011-09-09 09:30:27 +0000
committerWillem Jan Palenstijn2013-05-08 20:39:36 +0200
commitb16f34c376d16ca98fa7ef18e9781a30b159c918 (patch)
tree250a9ca4d543955498c0a63c6cc9fa20f89e60ee /engines
parent49658b6b5a0537010680f25248f2912114021b85 (diff)
downloadscummvm-rg350-b16f34c376d16ca98fa7ef18e9781a30b159c918.tar.gz
scummvm-rg350-b16f34c376d16ca98fa7ef18e9781a30b159c918.tar.bz2
scummvm-rg350-b16f34c376d16ca98fa7ef18e9781a30b159c918.zip
NEVERHOOD: Add Scene2248
Diffstat (limited to 'engines')
-rw-r--r--engines/neverhood/module2200.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/neverhood/module2200.cpp b/engines/neverhood/module2200.cpp
index 15e1ca4c4e..515e4bd0ad 100644
--- a/engines/neverhood/module2200.cpp
+++ b/engines/neverhood/module2200.cpp
@@ -371,6 +371,19 @@ void Module2200::createScene2247(int which) {
}
void Module2200::createScene2248(int which) {
+ _vm->gameState().sceneNum = 47;
+ if (!getGlobalVar(0x98109F12)) {
+ if (getGlobalVar(0x4D080E54))
+ _childObject = new Class152(_vm, this, 0x83110287, 0x10283839);
+ else
+ _childObject = new Class152(_vm, this, 0x83412B9D, 0x12B9983C);
+ } else {
+ if (getGlobalVar(0x4D080E54))
+ _childObject = new Class152(_vm, this, 0x48632087, 0x3208348E);
+ else
+ _childObject = new Class152(_vm, this, 0x08C74886, 0x74882084);
+ }
+ SetUpdateHandler(&Module2200::updateScene2248);
}
void Module2200::updateScene2201() {
@@ -634,6 +647,14 @@ void Module2200::updateScene2247() {
}
void Module2200::updateScene2248() {
+ _childObject->handleUpdate();
+ if (_done) {
+ _done = false;
+ delete _childObject;
+ _childObject = NULL;
+ createScene2242(1);
+ _childObject->handleUpdate();
+ }
}
// Scene2201