Skip to content

Commit a60aa8e

Browse files
sofarparamat
authored andcommittedApr 21, 2016
Fix timer initialization.
This fixes the problem that the first timer tick is an overrun and causes all timers to expire immediately. replaces #4003
1 parent 8cf26bb commit a60aa8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎builtin/game/misc.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
local jobs = {}
88
local time = 0.0
9-
local last = 0.0
9+
local last = core.get_us_time() / 1000000
1010

1111
core.register_globalstep(function(dtime)
1212
local new = core.get_us_time() / 1000000

0 commit comments

Comments
 (0)