From b2e7bb01e3fd34b259b723f362bd9246989fd8dc Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 5 Feb 2012 14:17:33 +1000 Subject: Code formatting. --- LuaSL/src/LuaSL_main.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'LuaSL') 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) if (ext) { - if ((!LUASL_DEBUG) || (0 == scriptCount)) - if (0 == strcmp(ext, ".lsl")) + if ((!LUASL_DEBUG) || (0 == scriptCount)) { - scriptCount++; - snprintf(buf, sizeof(buf), "%s/%s", path, name); - if (compileLSL(game, buf, FALSE)) - PD("The compile of %s worked,", buf); - else - PE("The compile of %s failed!", buf); + if (0 == strcmp(ext, ".lsl")) + { + scriptCount++; + snprintf(buf, sizeof(buf), "%s/%s", path, name); + if (compileLSL(game, buf, FALSE)) + PD("The compile of %s worked,", buf); + else + PE("The compile of %s failed!", buf); + } } } } -- cgit v1.1