1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-06-18 11:19:58 +00:00

Fixed transparency check function

If it tried to check an area of a window that fell outside its bounds, it would incorrectly return `true`.
This commit is contained in:
LDDestroier 2020-01-12 01:42:47 -05:00 committed by GitHub
parent 578dec4766
commit ba056343bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ local lval = {
elseif (not buffer[3][y][x] or buffer[3][y][x] == "-") and buffer[1][y][x] == " " then
return false
else
return true
return buffer[1][y][x] and buffer[2][y][x] and buffer[3][y][x]
end
end
end