mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-24 18:39:02 -06:00
Compare commits
No commits in common. "a063f10d332c852508e97c23088b9023847b43dd" and "18e0e02c767dedc0729dc28eca1c5eb878c3c78d" have entirely different histories.
a063f10d33
...
18e0e02c76
@ -530,8 +530,6 @@ function GameMode:onEnterOrHold(inputs, ruleset)
|
|||||||
if not self.grid:canPlacePiece(self.piece) then
|
if not self.grid:canPlacePiece(self.piece) then
|
||||||
self.game_over = true
|
self.game_over = true
|
||||||
return
|
return
|
||||||
elseif self.piece:isDropBlocked(self.grid) then
|
|
||||||
playSE("bottom")
|
|
||||||
end
|
end
|
||||||
ruleset:dropPiece(
|
ruleset:dropPiece(
|
||||||
inputs, self.piece, self.grid, self:getGravity(),
|
inputs, self.piece, self.grid, self:getGravity(),
|
||||||
@ -580,6 +578,10 @@ function GameMode:initializeNextPiece(
|
|||||||
self.piece_soft_locked = false
|
self.piece_soft_locked = false
|
||||||
self.buffer_hard_drop = false
|
self.buffer_hard_drop = false
|
||||||
self.buffer_soft_drop = false
|
self.buffer_soft_drop = false
|
||||||
|
if self.piece:isDropBlocked(self.grid) and
|
||||||
|
self.grid:canPlacePiece(self.piece) then
|
||||||
|
playSE("bottom")
|
||||||
|
end
|
||||||
if generate_next_piece == nil then
|
if generate_next_piece == nil then
|
||||||
table.remove(self.next_queue, 1)
|
table.remove(self.next_queue, 1)
|
||||||
table.insert(self.next_queue, self:getNextPiece(ruleset))
|
table.insert(self.next_queue, self:getNextPiece(ruleset))
|
||||||
|
Loading…
Reference in New Issue
Block a user