Sun, 04 Oct 2009 16:04:33 +0100
net.server: Pass current time to timer callbacks
net/server.lua | file | annotate | diff | comparison | revisions |
--- a/net/server.lua Sun Oct 04 16:03:53 2009 +0100 +++ b/net/server.lua Sun Oct 04 16:04:33 2009 +0100 @@ -821,7 +821,7 @@ _currenttime = os_time( ) if os_difftime( _currenttime - _timer ) >= 1 then for i = 1, _timerlistlen do - _timerlist[ i ]( ) -- fire timers + _timerlist[ i ]( _currenttime ) -- fire timers end _timer = _currenttime end