[Scummvm-cvs-logs] SF.net SVN: scummvm: [31714] scummvm/trunk/engines/made/script.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Apr 25 09:36:39 CEST 2008


Revision: 31714
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31714&view=rev
Author:   thebluegr
Date:     2008-04-25 00:36:38 -0700 (Fri, 25 Apr 2008)

Log Message:
-----------
Implemented cmd_rand() and cmd_randomize()

Modified Paths:
--------------
    scummvm/trunk/engines/made/script.cpp

Modified: scummvm/trunk/engines/made/script.cpp
===================================================================
--- scummvm/trunk/engines/made/script.cpp	2008-04-24 23:11:34 UTC (rev 31713)
+++ scummvm/trunk/engines/made/script.cpp	2008-04-25 07:36:38 UTC (rev 31714)
@@ -623,13 +623,11 @@
 }
 
 void ScriptInterpreter::cmd_rand() {
-	warning("Unimplemented command: cmd_rand");
+	_stack.setTop(_vm->_rnd->getRandomNumber(3));
 }
 
 void ScriptInterpreter::cmd_randomize() {
-	warning("Unimplemented command: cmd_randomize");
-	// TODO
-	_stack.setTop(0);
+	_stack.setTop(_vm->_rnd->getSeed());
 }
 
 void ScriptInterpreter::cmd_send() {


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