mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 12:49:03 -06:00
Made a previous fix to soft drop points obsolete w/ new fix
This commit is contained in:
parent
b1d325b714
commit
2189e3a7b8
@ -218,7 +218,7 @@ function GameMode:update(inputs, ruleset)
|
|||||||
if inputs["up"] == true and
|
if inputs["up"] == true and
|
||||||
self.piece:isDropBlocked(self.grid) and
|
self.piece:isDropBlocked(self.grid) and
|
||||||
not self.hard_drop_locked then
|
not self.hard_drop_locked then
|
||||||
self:onHardDrop(math.max(piece_dy, 0))
|
self:onHardDrop(piece_dy)
|
||||||
if self.lock_on_hard_drop then
|
if self.lock_on_hard_drop then
|
||||||
self.piece_hard_dropped = true
|
self.piece_hard_dropped = true
|
||||||
self.piece.locked = true
|
self.piece.locked = true
|
||||||
@ -226,7 +226,12 @@ function GameMode:update(inputs, ruleset)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if inputs["down"] == true then
|
if inputs["down"] == true then
|
||||||
self:onSoftDrop(math.max(piece_dy, 0))
|
if not (
|
||||||
|
self.piece:isDropBlocked(self.grid) and
|
||||||
|
piece_drot ~= 0
|
||||||
|
) then
|
||||||
|
self:onSoftDrop(piece_dy)
|
||||||
|
end
|
||||||
if self.piece:isDropBlocked(self.grid) and
|
if self.piece:isDropBlocked(self.grid) and
|
||||||
not self.drop_locked and
|
not self.drop_locked and
|
||||||
self.lock_on_soft_drop
|
self.lock_on_soft_drop
|
||||||
|
Loading…
Reference in New Issue
Block a user