Mandate safelock on 0 ARE rulesets/modes

This commit is contained in:
Ishaan Bhardwaj 2021-02-11 22:08:52 -05:00
parent 15354ce004
commit 06a8a2ebf7

View File

@ -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