Adjusted how DAS cut subtracts from the counter

This commit is contained in:
Ishaan Bhardwaj 2021-02-03 16:50:03 -05:00
parent 81677221f1
commit 5a074f77cf
2 changed files with 9 additions and 5 deletions

View File

@ -85,4 +85,8 @@ function table.contains(table, element)
end
end
return false
end
end
function clamp(a, b, c)
return math.min(a, math.max(b, c))
end

View File

@ -207,7 +207,7 @@ function GameMode:update(inputs, ruleset)
) then
self.das.frames = math.max(
self.das.frames - self:getDasCutDelay(),
-self:getDasCutDelay()
-(self:getDasCutDelay() + 1)
)
end