mirror of
https://github.com/usysrc/LICK.git
synced 2024-11-16 09:34:22 +00:00
4 spaces indentation
This commit is contained in:
parent
fb9319c889
commit
5449f2f33a
13
lick.lua
13
lick.lua
@ -34,12 +34,13 @@ local function update(dt)
|
|||||||
print(tostring(err))
|
print(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
|
||||||
else
|
else
|
||||||
print("CHUNK LOADED\n")
|
print("CHUNK LOADED\n")
|
||||||
lick.debugoutput = nil
|
lick.debugoutput = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if lick.reset then
|
if lick.reset then
|
||||||
loadok, err = xpcall(love.load, handle)
|
loadok, err = xpcall(love.load, handle)
|
||||||
if not loadok and not loadok_old then
|
if not loadok and not loadok_old then
|
||||||
@ -59,7 +60,9 @@ local function 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
|
||||||
end
|
end
|
||||||
|
|
||||||
updateok_old = not updateok
|
updateok_old = not updateok
|
||||||
@ -71,7 +74,9 @@ local function draw()
|
|||||||
print(tostring(err))
|
print(tostring(err))
|
||||||
if lick.debugoutput then
|
if lick.debugoutput then
|
||||||
lick.debugoutput = (lick.debugoutput .. err .. "\n" )
|
lick.debugoutput = (lick.debugoutput .. err .. "\n" )
|
||||||
else lick.debugoutput = err .. "\n" end
|
else
|
||||||
|
lick.debugoutput = err .. "\n"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if lick.debug and lick.debugoutput then
|
if lick.debug and lick.debugoutput then
|
||||||
|
Loading…
Reference in New Issue
Block a user