Temporary mapped GPL command StartPlay to handler for Start and reenabled gates' scripts (for added effects and testing).

svn-id: r42684
This commit is contained in:
Denis Kasak 2009-07-24 05:07:27 +00:00
parent c1ad0c3926
commit 5faceb595f
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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 },