diff options
author | Melanie | 2010-07-11 13:09:11 +0100 |
---|---|---|
committer | Melanie | 2010-07-11 13:09:11 +0100 |
commit | eaea89bbb74ad219a01c5dd81e1e4b5d8c1a15a4 (patch) | |
tree | 5ee0558b581da8418ed19e04bf9cc8b9d2ea1f8f /OpenSim | |
parent | Make taken items go back to the folder they came from (diff) | |
download | opensim-SC-eaea89bbb74ad219a01c5dd81e1e4b5d8c1a15a4.zip opensim-SC-eaea89bbb74ad219a01c5dd81e1e4b5d8c1a15a4.tar.gz opensim-SC-eaea89bbb74ad219a01c5dd81e1e4b5d8c1a15a4.tar.bz2 opensim-SC-eaea89bbb74ad219a01c5dd81e1e4b5d8c1a15a4.tar.xz |
Remove localID from script controls data. It won't transfer to another
region anyway
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | 4 |
3 files changed, 6 insertions, 8 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index ef125cd..9db2e41 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -179,7 +179,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
179 | public event ScriptChangedEvent OnScriptChangedEvent; | 179 | public event ScriptChangedEvent OnScriptChangedEvent; |
180 | public delegate void ScriptChangedEvent(uint localID, uint change); | 180 | public delegate void ScriptChangedEvent(uint localID, uint change); |
181 | 181 | ||
182 | public delegate void ScriptControlEvent(uint localID, UUID item, UUID avatarID, uint held, uint changed); | 182 | public delegate void ScriptControlEvent(UUID item, UUID avatarID, uint held, uint changed); |
183 | public event ScriptControlEvent OnScriptControlEvent; | 183 | public event ScriptControlEvent OnScriptControlEvent; |
184 | 184 | ||
185 | public delegate void ScriptAtTargetEvent(uint localID, uint handle, Vector3 targetpos, Vector3 atpos); | 185 | public delegate void ScriptAtTargetEvent(uint localID, uint handle, Vector3 targetpos, Vector3 atpos); |
@@ -1595,7 +1595,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1595 | } | 1595 | } |
1596 | } | 1596 | } |
1597 | 1597 | ||
1598 | internal void TriggerControlEvent(uint p, UUID scriptUUID, UUID avatarID, uint held, uint _changed) | 1598 | internal void TriggerControlEvent(UUID scriptUUID, UUID avatarID, uint held, uint _changed) |
1599 | { | 1599 | { |
1600 | ScriptControlEvent handlerScriptControlEvent = OnScriptControlEvent; | 1600 | ScriptControlEvent handlerScriptControlEvent = OnScriptControlEvent; |
1601 | if (handlerScriptControlEvent != null) | 1601 | if (handlerScriptControlEvent != null) |
@@ -1604,7 +1604,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1604 | { | 1604 | { |
1605 | try | 1605 | try |
1606 | { | 1606 | { |
1607 | d(p, scriptUUID, avatarID, held, _changed); | 1607 | d(scriptUUID, avatarID, held, _changed); |
1608 | } | 1608 | } |
1609 | catch (Exception e) | 1609 | catch (Exception e) |
1610 | { | 1610 | { |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 6c119c2..7f98877 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -60,7 +60,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
60 | struct ScriptControllers | 60 | struct ScriptControllers |
61 | { | 61 | { |
62 | public UUID itemID; | 62 | public UUID itemID; |
63 | public uint objID; | ||
64 | public ScriptControlled ignoreControls; | 63 | public ScriptControlled ignoreControls; |
65 | public ScriptControlled eventControls; | 64 | public ScriptControlled eventControls; |
66 | } | 65 | } |
@@ -3468,7 +3467,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
3468 | obj.eventControls = ScriptControlled.CONTROL_ZERO; | 3467 | obj.eventControls = ScriptControlled.CONTROL_ZERO; |
3469 | 3468 | ||
3470 | obj.itemID = Script_item_UUID; | 3469 | obj.itemID = Script_item_UUID; |
3471 | obj.objID = Obj_localID; | ||
3472 | if (pass_on == 0 && accept == 0) | 3470 | if (pass_on == 0 && accept == 0) |
3473 | { | 3471 | { |
3474 | IgnoredControls |= (ScriptControlled)controls; | 3472 | IgnoredControls |= (ScriptControlled)controls; |
@@ -3611,7 +3609,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3611 | if (localHeld != ScriptControlled.CONTROL_ZERO || localChange != ScriptControlled.CONTROL_ZERO) | 3609 | if (localHeld != ScriptControlled.CONTROL_ZERO || localChange != ScriptControlled.CONTROL_ZERO) |
3612 | { | 3610 | { |
3613 | // only send if still pressed or just changed | 3611 | // only send if still pressed or just changed |
3614 | m_scene.EventManager.TriggerControlEvent(scriptControlData.objID, scriptUUID, UUID, (uint)localHeld, (uint)localChange); | 3612 | m_scene.EventManager.TriggerControlEvent(scriptUUID, UUID, (uint)localHeld, (uint)localChange); |
3615 | } | 3613 | } |
3616 | } | 3614 | } |
3617 | } | 3615 | } |
diff --git a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs index 09b79d0..0ac8b5c 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | |||
@@ -356,9 +356,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
356 | // timer: not handled here | 356 | // timer: not handled here |
357 | // listen: not handled here | 357 | // listen: not handled here |
358 | 358 | ||
359 | public void control(uint localID, UUID itemID, UUID agentID, uint held, uint change) | 359 | public void control(UUID itemID, UUID agentID, uint held, uint change) |
360 | { | 360 | { |
361 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 361 | myScriptEngine.PostScriptEvent(itemID, new EventParams( |
362 | "control",new object[] { | 362 | "control",new object[] { |
363 | new LSL_Types.LSLString(agentID.ToString()), | 363 | new LSL_Types.LSLString(agentID.ToString()), |
364 | new LSL_Types.LSLInteger(held), | 364 | new LSL_Types.LSLInteger(held), |