diff options
author | johndoe123 | 2012-10-20 21:06:39 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:47:33 +0200 |
commit | 47994441cd5432df0c75953ea7d998c4b87c5443 (patch) | |
tree | 584ff42b044fee20b9f7262824f9846f44399518 /engines/neverhood/gamemodule.cpp | |
parent | 5af2de503ecf4e621370bf51a16472e162e543ac (diff) | |
download | scummvm-rg350-47994441cd5432df0c75953ea7d998c4b87c5443.tar.gz scummvm-rg350-47994441cd5432df0c75953ea7d998c4b87c5443.tar.bz2 scummvm-rg350-47994441cd5432df0c75953ea7d998c4b87c5443.zip |
NEVERHOOD: Move setting of debug variables to the GameModule
Diffstat (limited to 'engines/neverhood/gamemodule.cpp')
-rw-r--r-- | engines/neverhood/gamemodule.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/engines/neverhood/gamemodule.cpp b/engines/neverhood/gamemodule.cpp index ddbd4d9152..38d8b99c70 100644 --- a/engines/neverhood/gamemodule.cpp +++ b/engines/neverhood/gamemodule.cpp @@ -178,6 +178,21 @@ void GameModule::initMemoryPuzzle() { tileSymbolIndex = 0; } setSubVar(VA_IS_PUZZLE_INIT, 0xC8606803, 1); + + // DEBUG>>> + // TODO: Some debug code: Leave two matching tiles open + for (int i = 0; i < 48; i++) + setSubVar(VA_IS_TILE_MATCH, i, 1); + int debugIndex = 0; + setSubVar(VA_IS_TILE_MATCH, debugIndex, 0); + for (int i = 0; i < 48; i++) { + if (i != debugIndex && getSubVar(VA_TILE_SYMBOLS, i) == getSubVar(VA_TILE_SYMBOLS, debugIndex)) { + setSubVar(VA_IS_TILE_MATCH, i, 0); + break; + } + } + // <<<DEBUG + } } @@ -274,6 +289,20 @@ void GameModule::startup() { setGlobalVar(V_TNT_DUMMY_BUILT, 1); setGlobalVar(V_FLYTRAP_RING_DOOR, 1); setGlobalVar(V_TV_JOKE_TOLD, 1); + // Give all disks + for (int i = 0; i < 20; i++) + setSubVar(VA_IS_TAPE_INSERTED, i, 1); + setSubVar(VA_IS_KEY_INSERTED, 0, 1); + setSubVar(VA_IS_KEY_INSERTED, 1, 1); + setSubVar(VA_IS_KEY_INSERTED, 2, 1); + for (uint32 index = 0; index < 9; index++) + setSubVar(VA_CUBE_POSITIONS, index, 7 - index); + setGlobalVar(V_WALL_BROKEN, 0); + setGlobalVar(V_WORLDS_JOINED, 1); + setGlobalVar(V_RADIO_MOVE_DISH_VIDEO, 0); + // Enable all locations + for (int i = 0; i < 6; i++) + setSubVar(V_TELEPORTER_DEST_AVAILABLE, i, 1); // <<<DEBUG #if 1 |