mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 12:29:02 -06:00
ACTUALLY fixed negative drop points
This commit is contained in:
parent
40bdc5ed99
commit
1f0b43f1b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user