diff options
author | johndoe123 | 2013-01-19 22:37:51 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:47:41 +0200 |
commit | ac1dc3e4db23572b9a7d6855bfbdc20f9044a612 (patch) | |
tree | f6758a3dfede29672e239d76d8ae4f9a43dbd222 /engines/neverhood | |
parent | 5ff11f00413d1adf1a5abf11e0f5d3db19945064 (diff) | |
download | scummvm-rg350-ac1dc3e4db23572b9a7d6855bfbdc20f9044a612.tar.gz scummvm-rg350-ac1dc3e4db23572b9a7d6855bfbdc20f9044a612.tar.bz2 scummvm-rg350-ac1dc3e4db23572b9a7d6855bfbdc20f9044a612.zip |
NEVERHOOD: Fix Module1300::createScene
Diffstat (limited to 'engines/neverhood')
-rw-r--r-- | engines/neverhood/module1300.cpp | 2 | ||||
-rw-r--r-- | engines/neverhood/scene.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/neverhood/module1300.cpp b/engines/neverhood/module1300.cpp index a0a1167748..690ca7cea3 100644 --- a/engines/neverhood/module1300.cpp +++ b/engines/neverhood/module1300.cpp @@ -111,7 +111,7 @@ Module1300::~Module1300() { void Module1300::createScene(int sceneNum, int which) { debug("Module1300::createScene(%d, %d)", sceneNum, which); _sceneNum = sceneNum; - switch (_vm->gameState().sceneNum) { + switch (_sceneNum) { case 1: _vm->gameState().sceneNum = 1; _vm->_soundMan->setSoundListParams(kModule1300SoundList, false, 0, 0, 0, 0); diff --git a/engines/neverhood/scene.cpp b/engines/neverhood/scene.cpp index 866b75d399..63242a41c7 100644 --- a/engines/neverhood/scene.cpp +++ b/engines/neverhood/scene.cpp @@ -258,15 +258,15 @@ void Scene::leaveScene(uint32 result) { uint32 Scene::handleMessage(int messageNum, const MessageParam ¶m, Entity *sender) { switch (messageNum) { - case 0: // mouse moved + case 0x0000: // mouse moved if (_mouseCursor && _mouseCursor->hasMessageHandler()) sendMessage(_mouseCursor, 0x4002, param); break; - case 1: // mouse clicked + case 0x0001: // mouse clicked _mouseClicked = true; _mouseClickPos = param.asPoint(); break; - case 6: + case 0x0006: sendMessage(_parentModule, 0x1009, param); break; case 0x1006: |