board size side next fix

I made it so that the side next queue moves based on the width of the grid.
This commit is contained in:
terpyderp 2021-10-19 21:38:16 -05:00
parent ad63765eb9
commit 5db99becf3

View File

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