From 5db99becf3962e68ed58dfbe3416edc15f9db853 Mon Sep 17 00:00:00 2001 From: terpyderp Date: Tue, 19 Oct 2021 21:38:16 -0500 Subject: [PATCH] board size side next fix I made it so that the side next queue moves based on the width of the grid. --- tetris/modes/gamemode.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetris/modes/gamemode.lua b/tetris/modes/gamemode.lua index c230932..1d60cba 100644 --- a/tetris/modes/gamemode.lua +++ b/tetris/modes/gamemode.lua @@ -720,7 +720,7 @@ function GameMode:drawNextQueue(ruleset) local skin = self.next_queue[i].skin local rotation = self.next_queue[i].orientation if config.side_next then -- next at side - drawPiece(next_piece, skin, ruleset.block_offsets[next_piece][rotation], 192, -10+i*48) + drawPiece(next_piece, skin, ruleset.block_offsets[next_piece][rotation], 32+self.grid.width*16, -10+i*48) else -- next at top drawPiece(next_piece, skin, ruleset.block_offsets[next_piece][rotation], -16+i*80, -32) end