修复LOG.print内容显示在时长不同时会出问题

This commit is contained in:
MrZ626
2020-09-09 22:06:03 +08:00
parent 368a4fd51c
commit 6a217ad007

View File

@@ -17,11 +17,11 @@ function LOG.update()
M.blink=M.blink-1 M.blink=M.blink-1
else else
M.time=M.time-1 M.time=M.time-1
if i==1 and M.time==0 then if M.time==0 then
rem(debugMesList,i) rem(debugMesList,i)
if not debugMesList[1]then if not debugMesList[1]then
debugMesFloat=0 debugMesFloat=0
else elseif i==1 then
debugMesFloat=debugMesFloat+25 debugMesFloat=debugMesFloat+25
end end
end end
@@ -62,6 +62,9 @@ function LOG.print(text,T,C)--type/time,color
elseif T=="short"then elseif T=="short"then
C=C or color.orange C=C or color.orange
time=20 time=20
elseif type(T)=="number"then
C=C or color.white
time=T
elseif not C then elseif not C then
C=color.white C=color.white
end end