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.cs
0.6.0-stable
Charles Krinke 2008-07-06 18:39:37 +00:00
parent ae468bfc9b
commit dfd5e675c0
2 changed files with 2 additions and 2 deletions

View File

@ -1542,7 +1542,7 @@ namespace OpenSim.Region.ScriptEngine.Common
public double llGetTimeOfDay()
{
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()

View File

@ -1394,7 +1394,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public double llGetTimeOfDay()
{
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()