mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
let scriptEvents flags represent all events we have (so change to 64bit ulong) not the need to keep duplicated definitions on main framework and each script engine, namely because Xengine app domain option
This commit is contained in:
@@ -216,21 +216,21 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
|
||||
// Verify that our ScriptEventCode's match OpenSim's scriptEvent's.
|
||||
bool err = false;
|
||||
for(int i = 0; i < 32; i++)
|
||||
for(int i = 0; i < (int)ScriptEventCode.Size; i++)
|
||||
{
|
||||
string mycode = "undefined";
|
||||
string oscode = "undefined";
|
||||
try
|
||||
{
|
||||
mycode = ((ScriptEventCode)i).ToString();
|
||||
Convert.ToInt32(mycode);
|
||||
Convert.ToInt64(mycode);
|
||||
mycode = "undefined";
|
||||
}
|
||||
catch { }
|
||||
try
|
||||
{
|
||||
oscode = ((OpenSim.Region.Framework.Scenes.scriptEvents)(1 << i)).ToString();
|
||||
Convert.ToInt32(oscode);
|
||||
oscode = ((OpenSim.Region.Framework.Scenes.scriptEvents)(1ul << i)).ToString();
|
||||
Convert.ToInt64(oscode);
|
||||
oscode = "undefined";
|
||||
}
|
||||
catch { }
|
||||
@@ -1412,7 +1412,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
instance.EmptyEventQueues();
|
||||
}
|
||||
// Declare which events the script's current state can handle.
|
||||
int eventMask = instance.GetStateEventFlags(instance.stateCode);
|
||||
ulong eventMask = instance.GetStateEventFlags(instance.stateCode);
|
||||
instance.m_Part.SetScriptEvents(instance.m_ItemID, eventMask);
|
||||
|
||||
QueueToStart(instance);
|
||||
|
||||
Reference in New Issue
Block a user