net.server: Pass current time to timer callbacks

Sun, 04 Oct 2009 16:04:33 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 04 Oct 2009 16:04:33 +0100
changeset 1885
1fde15a415e6
parent 1884
6eaa440bc9fc
child 1886
d19c0a21bfb6

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

mercurial