aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-05 14:21:07 +1000
committerDavid Walter Seikel2012-02-05 14:21:07 +1000
commit420e343c31dee9e27fe193d54f9b06bbc822a467 (patch)
tree42b2ef35b96b526b84b6d01d50b3265d4bc166a8
parentCode formatting. (diff)
downloadSledjHamr-420e343c31dee9e27fe193d54f9b06bbc822a467.zip
SledjHamr-420e343c31dee9e27fe193d54f9b06bbc822a467.tar.gz
SledjHamr-420e343c31dee9e27fe193d54f9b06bbc822a467.tar.bz2
SledjHamr-420e343c31dee9e27fe193d54f9b06bbc822a467.tar.xz
Commentry.
-rw-r--r--LuaSL/src/LuaSL_compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index 3da5632..0a194a8 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -2284,8 +2284,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants)
2284 // Compile the Lua source code. 2284 // Compile the Lua source code.
2285 L = luaL_newstate(); 2285 L = luaL_newstate();
2286 luaL_openlibs(L); 2286 luaL_openlibs(L);
2287 /* This ends up pushing a function onto the stack for a lua_pcall() to use. 2287 // This ends up pushing a function onto the stack. The function is the compiled code.
2288 * The function is the compiled code. */
2289 err = luaL_loadfile(L, luaName); 2288 err = luaL_loadfile(L, luaName);
2290 if (err) 2289 if (err)
2291 { 2290 {
@@ -2299,6 +2298,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants)
2299 } 2298 }
2300 else 2299 else
2301 { 2300 {
2301 // Write the compiled code to a file.
2302 strcat(luaName, ".lua.out"); 2302 strcat(luaName, ".lua.out");
2303 out = fopen(luaName, "w"); 2303 out = fopen(luaName, "w");
2304 if (out) 2304 if (out)