[Scummvm-cvs-logs] SF.net SVN: scummvm:[42684] scummvm/branches/gsoc2009-draci/engines/draci
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Fri Jul 24 07:07:27 CEST 2009
Revision: 42684
http://scummvm.svn.sourceforge.net/scummvm/?rev=42684&view=rev
Author: dkasak13
Date: 2009-07-24 05:07:27 +0000 (Fri, 24 Jul 2009)
Log Message:
-----------
Temporary mapped GPL command StartPlay to handler for Start and reenabled gates' scripts (for added effects and testing).
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
scummvm/branches/gsoc2009-draci/engines/draci/script.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-07-24 05:00:53 UTC (rev 42683)
+++ scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-07-24 05:07:27 UTC (rev 42684)
@@ -311,10 +311,10 @@
// 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);
Modified: scummvm/branches/gsoc2009-draci/engines/draci/script.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/script.cpp 2009-07-24 05:00:53 UTC (rev 42683)
+++ scummvm/branches/gsoc2009-draci/engines/draci/script.cpp 2009-07-24 05:07:27 UTC (rev 42684)
@@ -46,7 +46,7 @@
{ 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 },
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list