From be58b929f35ed620d496959f5109ee2de7ee9e33 Mon Sep 17 00:00:00 2001 From: headchant Date: Sat, 26 May 2012 10:44:25 +0300 Subject: [PATCH] indentation and excessive brackets... --- LICK/lick.lua | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/LICK/lick.lua b/LICK/lick.lua index 879a587..9d1adf4 100644 --- a/LICK/lick.lua +++ b/LICK/lick.lua @@ -1,6 +1,6 @@ -- lick.lua -- --- simple LIVECODING environment with löve, overwrites love.run, suppressing errors to the terminal/console +-- simple LIVECODING environment with löve, overwrites love.run, pressing all errors to the terminal/console @@ -9,7 +9,7 @@ lick.file = "main.lua" lick.debug = false lick.reset = false lick.clearFlag = false -lick.sleepTime = (love.graphics.canvas) and (0.001) or 1 +lick.sleepTime = (love.graphics.canvas) and 0.001 or 1 function handle(err) return "ERROR: " .. err @@ -46,18 +46,19 @@ function lick.update(dt) lick.debugoutput = nil end if lick.reset then - loadok, err = xpcall(love.load, handle) - if not loadok and not loadok_old then - print("ERROR: "..tostring(err)) - if lick.debugoutput then - lick.debugoutput = (lick.debugoutput .."ERROR: ".. err .. "\n" ) - else lick.debugoutput = err .. "\n" end - loadok_old = not loadok - end - - - end + loadok, err = xpcall(love.load, handle) + if not loadok and not loadok_old then + print("ERROR: "..tostring(err)) + if lick.debugoutput then + lick.debugoutput = (lick.debugoutput .."ERROR: ".. err .. "\n" ) + else + lick.debugoutput = err .. "\n" + end + loadok_old = not loadok + end + end end + updateok, err = pcall(love.update,dt) if not updateok and not updateok_old then print("ERROR: "..tostring(err))