1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-09-01 10:28:01 +00:00

Update pain.lua

This commit is contained in:
LDDestroier
2018-11-07 20:05:34 -05:00
committed by GitHub
parent cb01093613
commit 1d2e012401

View File

@@ -813,7 +813,7 @@ local renderPainyThings = function(xscroll,yscroll,doGrid)
dotBuffChar = dotBuffChar .. grid[ro(y+(yscroll+2),#grid)+1]:sub(ro(x+paint.scrollX,#grid[1]))
dotBuffBack = dotBuffBack .. (CTB(doot[y+paint.scrollY][x+paint.scrollX].b or colors.white) or " ")
end
term.blit(dotBuffChar, (" ").rep(scr_x), dotBuffBack)
term.blit(dotBuffChar, CTB(rendback.t):rep(scr_x), dotBuffBack)
else
-- the single most convoluted line I've ever written that works, and I love it
term.write(stringShift(grid[ro(y+(yscroll+2),#grid)+1],xscroll+1):rep(math.ceil(scr_x/#grid[ro(y+(yscroll+2),#grid)+1])):sub(1,scr_x))