diff options
author | David Walter Seikel | 2012-02-07 02:59:18 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-02-07 02:59:18 +1000 |
commit | 9b45ed5e5dfe885593473c7cfce87362f83eeaa3 (patch) | |
tree | dff7c9013acceb54e350b607695db912f12198da /LuaSL/src | |
parent | Half of starting and stopping scripts. (diff) | |
download | SledjHamr-9b45ed5e5dfe885593473c7cfce87362f83eeaa3.zip SledjHamr-9b45ed5e5dfe885593473c7cfce87362f83eeaa3.tar.gz SledjHamr-9b45ed5e5dfe885593473c7cfce87362f83eeaa3.tar.bz2 SledjHamr-9b45ed5e5dfe885593473c7cfce87362f83eeaa3.tar.xz |
Commentary++.
Diffstat (limited to 'LuaSL/src')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
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. |
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. | ||
2280 | fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName); | 2282 | fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName); |
2281 | outputLeaf(out, OM_LUA, compiler.ast); | 2283 | outputLeaf(out, OM_LUA, compiler.ast); |
2282 | fprintf(out, "\n\n_LSL.mainLoop(_SID, _defaultState)\n"); // This actually starts the script running. | 2284 | fprintf(out, "\n\n_LSL.mainLoop(_SID, _defaultState)\n"); // This actually starts the script running. |