mirror of
https://github.com/LDDestroier/CC/
synced 2024-12-04 23:39:58 +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]))
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user