Mantis#1678. Thank you kindly, Vytek for a patch that:
Changes ...TimeOfDay.Milliseconds to ...TimeOfDay.TotalMilliseconds for llGetTimeOfDay() in both LSL_Api.cs and LSL_BuiltIn_Commands.cs0.6.0-stable
parent
ae468bfc9b
commit
dfd5e675c0
|
@ -1542,7 +1542,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
public double llGetTimeOfDay()
|
public double llGetTimeOfDay()
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
return (double)(((DateTime.Now.TimeOfDay.Milliseconds / 1000) % (3600 * 4)) * World.TimeDilation);
|
return (double)(((DateTime.Now.TimeOfDay.TotalMilliseconds / 1000) % (3600 * 4)) * World.TimeDilation);
|
||||||
}
|
}
|
||||||
|
|
||||||
public double llGetWallclock()
|
public double llGetWallclock()
|
||||||
|
|
|
@ -1394,7 +1394,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
public double llGetTimeOfDay()
|
public double llGetTimeOfDay()
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
return (double) (((DateTime.Now.TimeOfDay.Milliseconds / 1000) % (3600*4))*World.TimeDilation);
|
return (double) (((DateTime.Now.TimeOfDay.TotalMilliseconds / 1000) % (3600*4))*World.TimeDilation);
|
||||||
}
|
}
|
||||||
|
|
||||||
public double llGetWallclock()
|
public double llGetWallclock()
|
||||||
|
|
Loading…
Reference in New Issue