indentation and excessive brackets...

This commit is contained in:
headchant 2012-05-26 10:44:25 +03:00
parent f762aa85cc
commit be58b929f3

View File

@ -1,6 +1,6 @@
-- lick.lua -- 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.debug = false
lick.reset = false lick.reset = false
lick.clearFlag = 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) function handle(err)
return "ERROR: " .. err return "ERROR: " .. err
@ -51,13 +51,14 @@ function lick.update(dt)
print("ERROR: "..tostring(err)) print("ERROR: "..tostring(err))
if lick.debugoutput then if lick.debugoutput then
lick.debugoutput = (lick.debugoutput .."ERROR: ".. err .. "\n" ) lick.debugoutput = (lick.debugoutput .."ERROR: ".. err .. "\n" )
else lick.debugoutput = err .. "\n" end else
lick.debugoutput = err .. "\n"
end
loadok_old = not loadok loadok_old = not loadok
end end
end end
end end
updateok, err = pcall(love.update,dt) updateok, err = pcall(love.update,dt)
if not updateok and not updateok_old then if not updateok and not updateok_old then
print("ERROR: "..tostring(err)) print("ERROR: "..tostring(err))