mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:59:03 -06:00
Can no longer buffer a hard drop when not allowed
This commit is contained in:
parent
1fdd091456
commit
125488b4d9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user