From 9b45ed5e5dfe885593473c7cfce87362f83eeaa3 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 7 Feb 2012 02:59:18 +1000 Subject: Commentary++. --- LuaSL/src/LuaSL_compile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'LuaSL/src/LuaSL_compile.c') diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 72d94b9..b9ccf46 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -2277,6 +2277,8 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants) fprintf(out, "local _bit = require(\"bit\")\n"); fprintf(out, "local _LSL = require(\"LSL\")\n\n"); // TODO - Use the scripts UUID instead of the file name here. + // Hmm, copies of the same script in the same prim would have the same UUID, but different name, though they would run independently. + // Copies of the same script in different prims could have the same UUID AND the same name. fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName); outputLeaf(out, OM_LUA, compiler.ast); fprintf(out, "\n\n_LSL.mainLoop(_SID, _defaultState)\n"); // This actually starts the script running. -- cgit v1.1