ACTUALLY fixed negative drop points

This commit is contained in:
Ishaan Bhardwaj 2021-03-06 22:00:30 -05:00
parent 40bdc5ed99
commit 1f0b43f1b7

View File

@ -535,9 +535,10 @@ function GameMode:initializeNextPiece(inputs, ruleset, piece_data, generate_next
if self.buffer_hard_drop then if self.buffer_hard_drop then
self.buffer_hard_drop = false self.buffer_hard_drop = false
self:onHardDrop(self.piece.position.y - ( self:onHardDrop(self.piece.position.y - (
self.big_mode and self.piece.big and
ruleset.big_spawn_positions[self.piece.shape].y or ruleset.big_spawn_positions[self.piece.shape].y or
ruleset.spawn_positions[self.piece.shape].y) ruleset.spawn_positions[self.piece.shape].y) +
ruleset:getAboveFieldOffset(piece_data.shape, piece_data.orientation)
) )
end end
if self.buffer_soft_drop then if self.buffer_soft_drop then