mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 16:59:03 -06:00
Adjusted how DAS cut subtracts from the counter
This commit is contained in:
parent
81677221f1
commit
5a074f77cf
@ -85,4 +85,8 @@ function table.contains(table, element)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function clamp(a, b, c)
|
||||||
|
return math.min(a, math.max(b, c))
|
||||||
|
end
|
@ -207,7 +207,7 @@ function GameMode:update(inputs, ruleset)
|
|||||||
) then
|
) then
|
||||||
self.das.frames = math.max(
|
self.das.frames = math.max(
|
||||||
self.das.frames - self:getDasCutDelay(),
|
self.das.frames - self:getDasCutDelay(),
|
||||||
-self:getDasCutDelay()
|
-(self:getDasCutDelay() + 1)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user