diff options
author | johndoe123 | 2012-01-21 00:12:16 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:40:44 +0200 |
commit | 8172d679df5148a4a32f46074b20cb6caf91844f (patch) | |
tree | d519ecd0d2b9584db4ae77dd62c70d21e8c24924 /engines/neverhood | |
parent | 8613ff3a9dd0ad36c9d695c48ceb16a23e92e346 (diff) | |
download | scummvm-rg350-8172d679df5148a4a32f46074b20cb6caf91844f.tar.gz scummvm-rg350-8172d679df5148a4a32f46074b20cb6caf91844f.tar.bz2 scummvm-rg350-8172d679df5148a4a32f46074b20cb6caf91844f.zip |
NEVERHOOD: Add scene create/update handling in Module2800
Diffstat (limited to 'engines/neverhood')
-rw-r--r-- | engines/neverhood/module2800.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/engines/neverhood/module2800.cpp b/engines/neverhood/module2800.cpp index 3a86e29f36..eded442676 100644 --- a/engines/neverhood/module2800.cpp +++ b/engines/neverhood/module2800.cpp @@ -62,6 +62,20 @@ void Module2800::createScene(int sceneNum, int which) { // TODO Music18hList_stop(0xD2FA4D14, 0, 0); _childObject = new Scene2801(_vm, this, which); break; + case 1: + // TODO Music18hList_stop(0xD2FA4D14, 0, 0); +#if 0 + _flag = true; // DEBUG! + if (_flag) { + _childObject = new Scene2802(_vm, this, which); + } else { + _childObject = new Class152(_vm, this, 0x000C6444, 0xC6440008); + } +#endif + break; + // + case 1001: + break; // TODO ... } SetUpdateHandler(&Module2800::updateScene); @@ -83,12 +97,25 @@ void Module2800::updateScene() { leaveModule(0); } break; + case 1: + if (_moduleResult == 0) { + createScene(0, 2); + } else { + createScene(1001, -1); + } + break; + // + case 1001: + break; } } else { switch (_vm->gameState().sceneNum) { case 0: // TODO Module2800_sub4731E0(true); break; + case 1: + // TODO Module2800_sub4731E0(false); + break; } } } |