From 59a69e124ec6f97518990b1b8bbe5ffad89cbfdf Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 3 Oct 2009 02:33:33 +0100 Subject: util.timer: Pass current_time to timer callbacks --- util/timer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/timer.lua b/util/timer.lua index 819016de..c0c7f25a 100644 --- a/util/timer.lua +++ b/util/timer.lua @@ -42,7 +42,7 @@ ns_addtimer(function() local t, func = d[1], d[2]; if t <= current_time then data[i] = nil; - local r = func(); + local r = func(current_time); if type(r) == "number" then _add_task(r, func); end end end -- cgit v1.2.3