Thank you, thomax, for a patch making changed events CHANGED_REGION_RESTART and CHANGED_REGION work.

Fixes Mantix #5214.
viewer-2-initial-appearance
Marck 2010-11-22 10:39:46 +01:00
parent 8466ada8e0
commit 8a2c365e5b
1 changed files with 4 additions and 2 deletions

View File

@ -392,13 +392,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
{
// m_log.Debug("[Script] Posted changed(CHANGED_REGION_RESTART) to script");
PostEvent(new EventParams("changed",
new Object[] { (int)Changed.REGION_RESTART }, new DetectParams[0]));
new Object[] { new LSL_Types.LSLInteger((int)Changed.REGION_RESTART) },
new DetectParams[0]));
}
else if (m_stateSource == StateSource.PrimCrossing)
{
// CHANGED_REGION
PostEvent(new EventParams("changed",
new Object[] { (int)Changed.REGION }, new DetectParams[0]));
new Object[] { new LSL_Types.LSLInteger((int)Changed.REGION) },
new DetectParams[0]));
}
}
else