From: Alan M Webb <awebb@vnet.ibm.com>

Introduce time dilation in scripts.
0.6.0-stable
Sean Dague 2008-05-08 12:23:47 +00:00
parent 4fa0cbdfbb
commit a1f1c7f5c2
1 changed files with 2 additions and 2 deletions

View File

@ -1454,7 +1454,7 @@ namespace OpenSim.Region.ScriptEngine.Common
{
m_host.AddScriptLPS(1);
TimeSpan ScriptTime = DateTime.Now - m_timer;
return (double)(ScriptTime.TotalMilliseconds / 1000);
return (double)((ScriptTime.TotalMilliseconds / 1000)*World.TimeDilation);
}
public void llResetTime()
@ -1468,7 +1468,7 @@ namespace OpenSim.Region.ScriptEngine.Common
m_host.AddScriptLPS(1);
TimeSpan ScriptTime = DateTime.Now - m_timer;
m_timer = DateTime.Now;
return (double)(ScriptTime.TotalMilliseconds / 1000);
return (double)((ScriptTime.TotalMilliseconds / 1000)*World.TimeDilation);
}
public void llSound()