aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Kasak2009-07-24 05:07:27 +0000
committerDenis Kasak2009-07-24 05:07:27 +0000
commit5faceb595f1cd92353876d3930dfa626d0d075a9 (patch)
tree9021c32943769e90d1cadf0dc750a4e6eeb7a3f3
parentc1ad0c3926f4d53a9c5fdefefde9344d4abb6f10 (diff)
downloadscummvm-rg350-5faceb595f1cd92353876d3930dfa626d0d075a9.tar.gz
scummvm-rg350-5faceb595f1cd92353876d3930dfa626d0d075a9.tar.bz2
scummvm-rg350-5faceb595f1cd92353876d3930dfa626d0d075a9.zip
Temporary mapped GPL command StartPlay to handler for Start and reenabled gates' scripts (for added effects and testing).
svn-id: r42684
-rw-r--r--engines/draci/game.cpp8
-rw-r--r--engines/draci/script.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp
index e85a1780db..3f91bf1697 100644
--- a/engines/draci/game.cpp
+++ b/engines/draci/game.cpp
@@ -311,10 +311,10 @@ void Game::loadRoom(int roomNum) {
// HACK: Gates' scripts shouldn't be run unconditionally
// This is for testing
- //for (uint i = 0; i < _currentRoom._numGates; ++i) {
- // debugC(6, kDraciLogicDebugLevel, "Running program for gate %d", i);
- // _vm->_script->run(_currentRoom._program, gates[i]);
- //}
+ for (uint i = 0; i < _currentRoom._numGates; ++i) {
+ debugC(6, kDraciLogicDebugLevel, "Running program for gate %d", i);
+ _vm->_script->run(_currentRoom._program, gates[i]);
+ }
// Set room palette
f = _vm->_paletteArchive->getFile(_currentRoom._palette);
diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp
index 2dd5d9288a..7081d7f769 100644
--- a/engines/draci/script.cpp
+++ b/engines/draci/script.cpp
@@ -46,7 +46,7 @@ void Script::setupCommandList() {
{ 3, 1, "if", 2, { 4, 3 }, &Script::c_If },
{ 4, 1, "Start", 2, { 3, 2 }, &Script::start },
{ 5, 1, "Load", 2, { 3, 2 }, &Script::load },
- { 5, 2, "StartPlay", 2, { 3, 2 }, NULL },
+ { 5, 2, "StartPlay", 2, { 3, 2 }, &Script::start },
{ 5, 3, "JustTalk", 0, { 0 }, NULL },
{ 5, 4, "JustStay", 0, { 0 }, NULL },
{ 6, 1, "Talk", 2, { 3, 2 }, NULL },