mirror of
https://github.com/SashLilac/cambridge.git
synced 2025-05-13 20:21:25 -05:00
Can no longer buffer a hard drop when not allowed
This commit is contained in:
@@ -334,7 +334,7 @@ function GameMode:processDelays(inputs, ruleset, drop_speed)
|
|||||||
playedGoSE = false
|
playedGoSE = false
|
||||||
end
|
end
|
||||||
if self.ready_frames > 0 then
|
if self.ready_frames > 0 then
|
||||||
if not self.prev_inputs["up"] and inputs["up"] then
|
if not self.prev_inputs["up"] and inputs["up"] and self.enable_hard_drop then
|
||||||
self.buffer_hard_drop = true
|
self.buffer_hard_drop = true
|
||||||
end
|
end
|
||||||
if not self.prev_inputs["down"] and inputs["down"] then
|
if not self.prev_inputs["down"] and inputs["down"] then
|
||||||
@@ -353,7 +353,7 @@ function GameMode:processDelays(inputs, ruleset, drop_speed)
|
|||||||
self:initializeOrHold(inputs, ruleset)
|
self:initializeOrHold(inputs, ruleset)
|
||||||
end
|
end
|
||||||
elseif self.lcd > 0 then
|
elseif self.lcd > 0 then
|
||||||
if not self.prev_inputs["up"] and inputs["up"] then
|
if not self.prev_inputs["up"] and inputs["up"] and self.enable_hard_drop then
|
||||||
self.buffer_hard_drop = true
|
self.buffer_hard_drop = true
|
||||||
end
|
end
|
||||||
if not self.prev_inputs["down"] and inputs["down"] then
|
if not self.prev_inputs["down"] and inputs["down"] then
|
||||||
@@ -369,7 +369,7 @@ function GameMode:processDelays(inputs, ruleset, drop_speed)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif self.are > 0 then
|
elseif self.are > 0 then
|
||||||
if not self.prev_inputs["up"] and inputs["up"] then
|
if not self.prev_inputs["up"] and inputs["up"] and self.enable_hard_drop then
|
||||||
self.buffer_hard_drop = true
|
self.buffer_hard_drop = true
|
||||||
end
|
end
|
||||||
if not self.prev_inputs["down"] and inputs["down"] then
|
if not self.prev_inputs["down"] and inputs["down"] then
|
||||||
|
|||||||
Reference in New Issue
Block a user