1
0

Changed world tasks to use cLuaState::cCallback.

This commit is contained in:
Mattes D
2016-03-01 17:25:45 +01:00
parent 4489a89fde
commit b7e1a66815
2 changed files with 43 additions and 72 deletions

View File

@@ -1876,8 +1876,8 @@ end
function HandleConsoleSchedule(a_Split)
local prev = os.clock()
LOG("Scheduling a task for 2 seconds in the future (current os.clock is " .. prev .. ")")
cRoot:Get():GetDefaultWorld():ScheduleTask(40,
LOG("Scheduling a task for 5 seconds in the future (current os.clock is " .. prev .. ")")
cRoot:Get():GetDefaultWorld():ScheduleTask(5 * 20,
function ()
local current = os.clock()
local diff = current - prev