diff options
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: |