From a1f1c7f5c23afce21b7113e832388010b8c38d12 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 8 May 2008 12:23:47 +0000 Subject: [PATCH] From: Alan M Webb Introduce time dilation in scripts. --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 74494d927e..5c705b3d97 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -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()