Fixed spawn positions on larger than 10w boards

This commit is contained in:
Ishaan Bhardwaj 2021-08-20 18:53:07 -04:00
parent 923f3d3696
commit dafc113038

View File

@ -214,7 +214,7 @@ function Ruleset:initializePiece(
colours = self.colourscheme colours = self.colourscheme
end end
local spawn_x = math.floor(spawn_positions[data.shape].x * grid.width / 10) local spawn_x = math.ceil(spawn_positions[data.shape].x * grid.width / 10)
local spawn_dy local spawn_dy
if (config.gamesettings.spawn_positions == 1) then if (config.gamesettings.spawn_positions == 1) then