From 5fc1d9cce112bd0df3604be3a9efbc43ff5170a8 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 5 Feb 2012 18:19:39 +1000 Subject: Do script quitting differently, using the wire protocol method, which means I got to debug that. --- LuaSL/src/LuaSL_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LuaSL/src/LuaSL_compile.c') diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 72d94b9..f840b69 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -2275,7 +2275,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants) fprintf(out, "--// Generated code goes here.\n\n"); fprintf(out, "local _bit = require(\"bit\")\n"); - fprintf(out, "local _LSL = require(\"LSL\")\n\n"); + fprintf(out, "_LSL = require(\"LSL\")\n\n"); // Local might be quicker, but looks like we need global for pcall(), it has it's own local stack I think. // TODO - Use the scripts UUID instead of the file name here. fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName); outputLeaf(out, OM_LUA, compiler.ast); -- cgit v1.1