From 1f0b43f1b72104ff749209fb39c9856cf66dc478 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sat, 6 Mar 2021 22:00:30 -0500 Subject: [PATCH] ACTUALLY fixed negative drop points --- tetris/modes/gamemode.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tetris/modes/gamemode.lua b/tetris/modes/gamemode.lua index 3bd74bb..c5abf88 100644 --- a/tetris/modes/gamemode.lua +++ b/tetris/modes/gamemode.lua @@ -535,9 +535,10 @@ function GameMode:initializeNextPiece(inputs, ruleset, piece_data, generate_next if self.buffer_hard_drop then self.buffer_hard_drop = false self:onHardDrop(self.piece.position.y - ( - self.big_mode and + self.piece.big and 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 if self.buffer_soft_drop then