mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-24 07:19:03 -06:00
Compare commits
3 Commits
a6b8abff6d
...
788aa11470
Author | SHA1 | Date | |
---|---|---|---|
|
788aa11470 | ||
|
a303e82b90 | ||
|
b06d03c4e6 |
@ -1 +1 @@
|
||||
version = "v0.3.3.1"
|
||||
version = "v0.3.3.2"
|
@ -231,12 +231,15 @@ function Grid:applyBigPiece(piece)
|
||||
end
|
||||
end
|
||||
|
||||
function Grid:checkForBravo(cleared_row_count)
|
||||
for i = 0, self.height - 1 - cleared_row_count do
|
||||
for j = 0, self.width - 1 do
|
||||
if self:isOccupied(j, i) then return false end
|
||||
end
|
||||
-- places where you see this take an argument used the old, buggy method
|
||||
function Grid:checkForBravo()
|
||||
for i = 0, self.height - 1 do
|
||||
if not self:isRowFull(i+1) then
|
||||
for j = 0, self.width - 1 do
|
||||
if self:isOccupied(j, i) then return false end
|
||||
end
|
||||
end
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user