mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-05 23:10:28 +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:
parent
578dec4766
commit
ba056343bd
@ -35,7 +35,7 @@ local lval = {
|
|||||||
elseif (not buffer[3][y][x] or buffer[3][y][x] == "-") and buffer[1][y][x] == " " then
|
elseif (not buffer[3][y][x] or buffer[3][y][x] == "-") and buffer[1][y][x] == " " then
|
||||||
return false
|
return false
|
||||||
else
|
else
|
||||||
return true
|
return buffer[1][y][x] and buffer[2][y][x] and buffer[3][y][x]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user