diff options
author | cheapie <no-email-for-you@example.com> | 2021-01-26 18:13:00 -0600 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2021-01-26 18:13:00 -0600 |
commit | e15ca1445c36a55b9031b8f88f2ab07d7c15df84 (patch) | |
tree | ab7546a0646e0a76ea7d9e28a62018cbc04786ff | |
parent | 91b95b03cf8d739ed6377060a11785c2436b0540 (diff) | |
download | digistuff-e15ca1445c36a55b9031b8f88f2ab07d7c15df84.tar digistuff-e15ca1445c36a55b9031b8f88f2ab07d7c15df84.tar.gz digistuff-e15ca1445c36a55b9031b8f88f2ab07d7c15df84.tar.bz2 digistuff-e15ca1445c36a55b9031b8f88f2ab07d7c15df84.tar.xz digistuff-e15ca1445c36a55b9031b8f88f2ab07d7c15df84.zip |
Fix bug that was forcing copies to be square
-rw-r--r-- | gpu.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -286,7 +286,7 @@ local function runcommand(pos,meta,command) if type(transparent) ~= "string" or string.len(transparent) > 7 or string.len(transparent) < 6 then transparent = "000000" end if string.sub(transparent,1,1) == "#" then transparent = string.sub(transparent,2,7) end if not tonumber(transparent,16) then transparent = "000000" end - for y=0,xsize-1,1 do + for y=0,ysize-1,1 do for x=0,xsize-1,1 do local srcpx = sourcebuffer[srcy+y][srcx+x] local destpx = destbuffer[dsty+y][dstx+x] |