This commit is contained in:
Casey 2024-09-10 19:30:02 +03:00
parent 8e9dd958eb
commit 52f2a55cc1
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ function()
for x = 1, 164 do
local i = (y - 1) * 164 + (x - 1)
tx[x] = chunk_state[i * 2 + 1]
bg[x] = string.format("%x", bit.band(chunk_state[i * 2 + 2], 0xF))
fg[x] = string.format("%x", bit.band(bit.brshift(chunk_state[i * 2 + 2], 4), 0xF))
fg[x] = string.format("%x", bit.band(chunk_state[i * 2 + 2], 0xF))
bg[x] = string.format("%x", bit.band(bit.brshift(chunk_state[i * 2 + 2], 4), 0xF))
end
mon.blit(string.char(table.unpack(tx)), table.concat(bg), table.concat(fg))
end