From 9df0501cf50c749c5e3f96795983a6388a9f26dd Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj <59454579+SashLilac@users.noreply.github.com> Date: Thu, 19 Nov 2020 12:15:06 -0500 Subject: [PATCH] Fixed NES transitions, once and for all --- tetris/modes/marathon_c89.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetris/modes/marathon_c89.lua b/tetris/modes/marathon_c89.lua index 6ff94e5..c3cfafd 100644 --- a/tetris/modes/marathon_c89.lua +++ b/tetris/modes/marathon_c89.lua @@ -149,7 +149,7 @@ function MarathonC89Game:getTransitionLines() end function MarathonC89Game:getLevelForLines() - return self.start_level + math.max(0, math.floor(self.lines - self:getTransitionLines()) + 1) + return self.start_level + math.max(0, math.floor((self.lines - self:getTransitionLines()) / 10) + 1) end function MarathonC89Game:updateScore(level, drop_bonus, cleared_lines)