llSetTimerEvent was setting seconds as milliseconds causing major problems in timed scripts...

ThreadPoolClientBranch
Tedd Hansen 2008-02-20 17:14:01 +00:00
parent 4c6e5a5090
commit 96edcea3ae
2 changed files with 2 additions and 2 deletions

View File

@ -1244,7 +1244,7 @@ namespace OpenSim.Region.ScriptEngine.Common
{
m_host.AddScriptLPS(1);
// Setting timer repeat
m_ScriptEngine.m_ASYNCLSLCommandManager.SetTimerEvent(m_localID, m_itemID, sec);
m_ScriptEngine.m_ASYNCLSLCommandManager.SetTimerEvent(m_localID, m_itemID, sec / 1000);
}
public void llSleep(double sec)

View File

@ -160,7 +160,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
TimerClass ts = new TimerClass();
ts.localID = m_localID;
ts.itemID = m_itemID;
ts.interval = sec;
ts.interval = sec / 1000;
ts.next = DateTime.Now.ToUniversalTime().AddSeconds(ts.interval);
lock (TimerListLock)
{