off-by-1
This commit is contained in:
parent
a49e996e1b
commit
89bb807cc2
|
@ -253,7 +253,7 @@ table.insert(subthreads, function()
|
||||||
term.setBackgroundColor(frame >= #frames and colors.red or colors.gray)
|
term.setBackgroundColor(frame >= #frames and colors.red or colors.gray)
|
||||||
term.clearLine()
|
term.clearLine()
|
||||||
term.write(string.format("Playing frame: %d/%d", frame + 1, #frames))
|
term.write(string.format("Playing frame: %d/%d", frame + 1, #frames))
|
||||||
if frames[frame] then
|
if frames[frame + 1] then
|
||||||
ccpi.draw(frames[frame + 1], 1, 1, monitor)
|
ccpi.draw(frames[frame + 1], 1, 1, monitor)
|
||||||
end
|
end
|
||||||
os.sleep(delay)
|
os.sleep(delay)
|
||||||
|
|
Loading…
Reference in New Issue