Zen mode negative scoring fixed

pull/4/head
Ishaan Bhardwaj 2021-01-30 23:29:07 -05:00
parent 001ec53711
commit 2566c7001f
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ end
function ZenMode:onPieceLock(piece, cleared_row_count)
self.super:onPieceLock()
self.pieces = self.pieces + 1
self.score = self.score + bigint.new(self:getLockDelay() - piece.lock_delay)
self.score = self.score + bigint.new(math.max(0, self:getLockDelay() - piece.lock_delay))
if self.grid:checkForBravo(cleared_row_count) then
self.message = "ALL CLEAR!"
elseif piece.spin then