diff options
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 29ea47c..a65b84b 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -2276,9 +2276,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants) | |||
2276 | fprintf(out, "--// Generated code goes here.\n\n"); | 2276 | fprintf(out, "--// Generated code goes here.\n\n"); |
2277 | fprintf(out, "local _bit = require(\"bit\")\n"); | 2277 | fprintf(out, "local _bit = require(\"bit\")\n"); |
2278 | fprintf(out, "local _LSL = require(\"LSL\")\n\n"); | 2278 | fprintf(out, "local _LSL = require(\"LSL\")\n\n"); |
2279 | // TODO - Use the scripts UUID instead of the file name here. | 2279 | // TODO - Use the scripts UUID instead of the file name here, or something. |
2280 | // Hmm, copies of the same script in the same prim would have the same UUID, but different name, though they would run independently. | ||
2281 | // Copies of the same script in different prims could have the same UUID AND the same name. | ||
2282 | fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName); | 2280 | fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName); |
2283 | outputLeaf(out, OM_LUA, compiler.ast); | 2281 | outputLeaf(out, OM_LUA, compiler.ast); |
2284 | fprintf(out, "\n\n_LSL.mainLoop(_SID, _defaultState)\n"); // This actually starts the script running. | 2282 | fprintf(out, "\n\n_LSL.mainLoop(_SID, _defaultState)\n"); // This actually starts the script running. |