mirror of
https://github.com/usysrc/LICK.git
synced 2024-11-16 09:34:22 +00:00
indentation and excessive brackets...
This commit is contained in:
parent
f762aa85cc
commit
be58b929f3
@ -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
|
||||
@ -51,13 +51,14 @@ function lick.update(dt)
|
||||
print("ERROR: "..tostring(err))
|
||||
if lick.debugoutput then
|
||||
lick.debugoutput = (lick.debugoutput .."ERROR: ".. err .. "\n" )
|
||||
else lick.debugoutput = err .. "\n" end
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user