[Teleus-cvs] teleus/src/game tscript.cpp,1.7,1.8
Status: Inactive
Brought to you by:
spiffgq
|
From: Daniel R. <sp...@us...> - 2004-05-25 21:14:15
|
Update of /cvsroot/teleus/teleus/src/game In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29464/src/game Modified Files: tscript.cpp Log Message: Minor comment revisions. Index: tscript.cpp =================================================================== RCS file: /cvsroot/teleus/teleus/src/game/tscript.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** tscript.cpp 25 Feb 2004 06:34:02 -0000 1.7 --- tscript.cpp 25 May 2004 21:14:00 -0000 1.8 *************** *** 242,246 **** * * \retval RESULT_SUCCESS if the script was loaded successfully. ! * \retval RESULT_FAILUR if the file could not be opened. * \retval RESULT_SYNTAX_ERROR if the Lua script contains a * syntax error. --- 242,246 ---- * * \retval RESULT_SUCCESS if the script was loaded successfully. ! * \retval RESULT_FAILURE if the file could not be opened. * \retval RESULT_SYNTAX_ERROR if the Lua script contains a * syntax error. *************** *** 255,259 **** RESULT luaT_loadFile (const char *path){ ! DEBUG_PRINT ("Loading and running script [%s]\n", path); assert (path != NULL, "Can't run an empty path, bonehead\n"); --- 255,259 ---- RESULT luaT_loadFile (const char *path){ ! DEBUG_PRINT ("Loading script [%s]\n", path); assert (path != NULL, "Can't run an empty path, bonehead\n"); *************** *** 335,338 **** --- 335,340 ---- RESULT luaT_executeScript (const char *path){ + DEBUG_PRINT ("Loading and running script [%s]\n", path); + // Load the file into memory using the custom load function RESULT result = luaT_loadFile (path); *************** *** 375,378 **** --- 377,382 ---- * \warning \a vals and \a name <b>must not</b> be null. * + * \todo Should I put these in the 'teleus' table namespace? + * * \author Daniel Royer * \see createNumberVar() *************** *** 430,433 **** --- 434,438 ---- * \todo Verify this function's correctness. It works, but do * I need to pop the value off the stack at the end? + * \todo Should I put these in the 'teleus' table namespace? */ RESULT luaT_createStringVar (const char *name, const char *value){ *************** *** 463,466 **** --- 468,473 ---- * \todo Verify this function's correctness. It works, but do * I need to pop the value off the stack at the end? + * + * \todo Should I put these in the 'teleus' table namespace? */ RESULT luaT_createNumberVar (const char *name, double value){ *************** *** 499,503 **** lua_setglobal (luaVM, name); ! DEBUG_PRINT ("Done deleting variable called \"%s\"\n", name); return RESULT_SUCCESS; --- 506,510 ---- lua_setglobal (luaVM, name); ! //DEBUG_PRINT ("Done deleting variable called \"%s\"\n", name); return RESULT_SUCCESS; |