From 3c83ae0bf49dcc45faac1447599f727cd22d8e7a Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sat, 23 Jan 2021 13:50:40 -0500 Subject: [PATCH] Fixed stray ends --- tetris/modes/marathon_a2.lua | 2 +- tetris/modes/marathon_a3.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tetris/modes/marathon_a2.lua b/tetris/modes/marathon_a2.lua index 0bf2892..5b9a30b 100644 --- a/tetris/modes/marathon_a2.lua +++ b/tetris/modes/marathon_a2.lua @@ -248,7 +248,7 @@ local grade_conversion = { } function MarathonA2Game:updateGrade(cleared_lines) - if self.clear or cleared_lines == 0 then return end + if self.clear or cleared_lines == 0 then return else self.grade_points = self.grade_points + ( math.ceil( diff --git a/tetris/modes/marathon_a3.lua b/tetris/modes/marathon_a3.lua index 5ecb132..e1dd85c 100644 --- a/tetris/modes/marathon_a3.lua +++ b/tetris/modes/marathon_a3.lua @@ -322,7 +322,7 @@ local grade_conversion = { } function MarathonA3Game:updateGrade(cleared_lines) - if cleared_lines == 0 then return end + if cleared_lines == 0 then return else if self.clear then if self:qualifiesForMRoll() then