Commit 2ce4f0e0 authored by Blazeflack's avatar Blazeflack
Browse files

Use better variable names in E:Delay

parent ae3f3081
...@@ -300,15 +300,15 @@ function E:Delay(delay, func, ...) ...@@ -300,15 +300,15 @@ function E:Delay(delay, func, ...)
local i = 1 local i = 1
while(i<=count) do while(i<=count) do
local waitRecord = tremove(waitTable,i) local waitRecord = tremove(waitTable,i)
local d = tremove(waitRecord,1) local delay = tremove(waitRecord,1)
local f = tremove(waitRecord,1) local func = tremove(waitRecord,1)
local p = tremove(waitRecord,1) local params = tremove(waitRecord,1)
if(d>elapse) then if(delay>elapse) then
tinsert(waitTable,i,{d-elapse,f,p}) tinsert(waitTable,i,{delay-elapse,func,params})
i = i + 1 i = i + 1
else else
count = count - 1 count = count - 1
f(unpack(p)) func(unpack(params))
end end
end end
end) end)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment