mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:49:02 -06:00
Mandate safelock on 0 ARE rulesets/modes
This commit is contained in:
parent
15354ce004
commit
06a8a2ebf7
@ -515,10 +515,14 @@ function GameMode:initializeNextPiece(inputs, ruleset, piece_data, generate_next
|
|||||||
if self.buffer_soft_drop then
|
if self.buffer_soft_drop then
|
||||||
self.buffer_soft_drop = false
|
self.buffer_soft_drop = false
|
||||||
end
|
end
|
||||||
if self.lock_drop then
|
if self.lock_drop or (
|
||||||
|
not ruleset.are or self:getARE() == 0
|
||||||
|
) then
|
||||||
self.drop_locked = true
|
self.drop_locked = true
|
||||||
end
|
end
|
||||||
if self.lock_hard_drop then
|
if self.lock_hard_drop or (
|
||||||
|
not ruleset.are or self:getARE() == 0
|
||||||
|
) then
|
||||||
self.hard_drop_locked = true
|
self.hard_drop_locked = true
|
||||||
end
|
end
|
||||||
if generate_next_piece == nil then
|
if generate_next_piece == nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user