mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
mantis 8704: fix issues on YEngine
This commit is contained in:
@@ -529,9 +529,18 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
XmlElement doGblInitN = (XmlElement)scriptStateN.SelectSingleNode("DoGblInit");
|
||||
doGblInit = bool.Parse(doGblInitN.InnerText);
|
||||
|
||||
if (m_XMRLSLApi != null)
|
||||
{
|
||||
XmlElement scpttimeN = (XmlElement)scriptStateN.SelectSingleNode("scrpTime");
|
||||
if (scpttimeN != null && Double.TryParse(scpttimeN.InnerText, out double t))
|
||||
{
|
||||
m_XMRLSLApi.SetLSLTimer(Util.GetTimeStampMS() - t);
|
||||
}
|
||||
}
|
||||
|
||||
double minEventDelay = 0.0;
|
||||
XmlElement minEventDelayN = (XmlElement)scriptStateN.SelectSingleNode("mEvtDly");
|
||||
if(minEventDelayN != null)
|
||||
if (minEventDelayN != null)
|
||||
minEventDelay = Double.Parse(minEventDelayN.InnerText);
|
||||
|
||||
// get values used by stuff like llDetectedGrab, etc.
|
||||
|
||||
Reference in New Issue
Block a user