Fixed drawing frame on non-standard grids

This commit is contained in:
Ishaan Bhardwaj 2021-01-11 22:40:48 -05:00
parent cb70967b82
commit 668f061077

View File

@ -60,7 +60,7 @@ function GameScene:render()
16 * self.game.grid.width, 16 * (self.game.grid.height - 4) 16 * self.game.grid.width, 16 * (self.game.grid.height - 4)
) )
if self.game.grid.width ~= 10 and self.game.grid.height ~= 24 then if self.game.grid.width ~= 10 or self.game.grid.height ~= 24 then
love.graphics.setColor(174/255, 83/255, 76/255, 1) love.graphics.setColor(174/255, 83/255, 76/255, 1)
love.graphics.setLineWidth(8) love.graphics.setLineWidth(8)
love.graphics.line( love.graphics.line(