mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-24 19:19:01 -06:00
Fix bravo detection
This commit is contained in:
parent
5fa144f146
commit
b06d03c4e6
@ -231,12 +231,15 @@ function Grid:applyBigPiece(piece)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Grid:checkForBravo(cleared_row_count)
|
-- places where you see this take an argument used the old, buggy method
|
||||||
for i = 0, self.height - 1 - cleared_row_count do
|
function Grid:checkForBravo()
|
||||||
for j = 0, self.width - 1 do
|
for i = 0, self.height - 1 do
|
||||||
if self:isOccupied(j, i) then return false end
|
if not self:isRowFull(i+1) then
|
||||||
end
|
for j = 0, self.width - 1 do
|
||||||
|
if self:isOccupied(j, i) then return false end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user