aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/gamemodule.cpp
diff options
context:
space:
mode:
authorjohndoe1232012-10-11 21:23:55 +0000
committerWillem Jan Palenstijn2013-05-08 20:47:06 +0200
commit111b6d32c6c8e6aaafdb6e5efaeea0a0ae4aa998 (patch)
tree91cb6b29f206fd1b8b8ff6116bf394e40f63f252 /engines/neverhood/gamemodule.cpp
parent2e7d100a6f2834b68e4d5d18cf72f63871ddfdf9 (diff)
downloadscummvm-rg350-111b6d32c6c8e6aaafdb6e5efaeea0a0ae4aa998.tar.gz
scummvm-rg350-111b6d32c6c8e6aaafdb6e5efaeea0a0ae4aa998.tar.bz2
scummvm-rg350-111b6d32c6c8e6aaafdb6e5efaeea0a0ae4aa998.zip
NEVERHOOD: Fix Smacker framerate bug after the video decoder changes
- React to the space key which can skip some videos and navigation transitions - Minor renaming in SmackerScene
Diffstat (limited to 'engines/neverhood/gamemodule.cpp')
-rw-r--r--engines/neverhood/gamemodule.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/neverhood/gamemodule.cpp b/engines/neverhood/gamemodule.cpp
index 1b9c9f361d..0c2e0907a7 100644
--- a/engines/neverhood/gamemodule.cpp
+++ b/engines/neverhood/gamemodule.cpp
@@ -85,6 +85,13 @@ void GameModule::handleMouseDown(int16 x, int16 y) {
}
}
+void GameModule::handleSpaceKey() {
+ if (_childObject) {
+ debug(2, "GameModule::handleSpaceKey()");
+ sendMessage(_childObject, 9, 0);
+ }
+}
+
void GameModule::initScene1307Vars() {
// Exit if it's already initialized
@@ -314,7 +321,7 @@ void GameModule::startup() {
#if 1
_vm->gameState().which = 0;
_vm->gameState().sceneNum = 1;
- createModule(2200, -1);
+ createModule(3000, -1);
#endif
#if 0
_vm->gameState().sceneNum = 0;