Fixed NES transitions, once and for all

This commit is contained in:
Ishaan Bhardwaj 2020-11-19 12:15:06 -05:00 committed by GitHub
parent 5e0e36fc5c
commit 9df0501cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)