timedeltafix
This commit is contained in:
@@ -28,7 +28,7 @@ function Timer.update()
|
||||
local in_minigame = string.find(Window.get_current_id(), "^minigame_") ~= nil
|
||||
|
||||
if not in_minigame then
|
||||
t.progress = t.progress + (1 / timer_duration)
|
||||
t.progress = t.progress + (Context.delta_time / (timer_duration / 60))
|
||||
if t.progress >= 1 then
|
||||
t.progress = t.progress - 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user