mirror of
https://github.com/LDDestroier/CC/
synced 2025-05-06 08:54:04 +00:00
Update pain.lua
This commit is contained in:
parent
cb01093613
commit
1d2e012401
2
pain.lua
2
pain.lua
@ -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]))
|
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 " ")
|
dotBuffBack = dotBuffBack .. (CTB(doot[y+paint.scrollY][x+paint.scrollX].b or colors.white) or " ")
|
||||||
end
|
end
|
||||||
term.blit(dotBuffChar, (" ").rep(scr_x), dotBuffBack)
|
term.blit(dotBuffChar, CTB(rendback.t):rep(scr_x), dotBuffBack)
|
||||||
else
|
else
|
||||||
-- the single most convoluted line I've ever written that works, and I love it
|
-- 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))
|
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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user