From 5ece2994e9a526bb0ea81b7e9443e45cc967dcd0 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Tue, 23 Nov 2021 14:37:46 -0500 Subject: [PATCH] Fixed a ceiling issue in C88 --- tetris/modes/marathon_c88.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tetris/modes/marathon_c88.lua b/tetris/modes/marathon_c88.lua index beb134e..ab09bef 100644 --- a/tetris/modes/marathon_c88.lua +++ b/tetris/modes/marathon_c88.lua @@ -40,8 +40,7 @@ function MarathonC88Game:new(secret_inputs) self.irs = false self.grid.getCell = function(self, x, y) - if x < 1 or x > self.width or y < 5 or y > self.height then return oob - elseif y < 1 then return empty + if x < 1 or x > self.width or y < 5 or y > self.height then return nil else return self.grid[y][x] end end