aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL
diff options
context:
space:
mode:
Diffstat (limited to 'LuaSL')
-rw-r--r--LuaSL/src/LuaSL_main.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/LuaSL/src/LuaSL_main.c b/LuaSL/src/LuaSL_main.c
index 24626fb..f233031 100644
--- a/LuaSL/src/LuaSL_main.c
+++ b/LuaSL/src/LuaSL_main.c
@@ -77,15 +77,17 @@ static void dirList_compile(const char *name, const char *path, void *data)
77 77
78 if (ext) 78 if (ext)
79 { 79 {
80 if ((!LUASL_DEBUG) || (0 == scriptCount)) 80 if ((!LUASL_DEBUG) || (0 == scriptCount))
81 if (0 == strcmp(ext, ".lsl"))
82 { 81 {
83 scriptCount++; 82 if (0 == strcmp(ext, ".lsl"))
84 snprintf(buf, sizeof(buf), "%s/%s", path, name); 83 {
85 if (compileLSL(game, buf, FALSE)) 84 scriptCount++;
86 PD("The compile of %s worked,", buf); 85 snprintf(buf, sizeof(buf), "%s/%s", path, name);
87 else 86 if (compileLSL(game, buf, FALSE))
88 PE("The compile of %s failed!", buf); 87 PD("The compile of %s worked,", buf);
88 else
89 PE("The compile of %s failed!", buf);
90 }
89 } 91 }
90 } 92 }
91} 93}