From eaea89bbb74ad219a01c5dd81e1e4b5d8c1a15a4 Mon Sep 17 00:00:00 2001 From: Melanie Date: Sun, 11 Jul 2010 13:09:11 +0100 Subject: Remove localID from script controls data. It won't transfer to another region anyway --- OpenSim/Region/Framework/Scenes/EventManager.cs | 6 +++--- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes') 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 public event ScriptChangedEvent OnScriptChangedEvent; public delegate void ScriptChangedEvent(uint localID, uint change); - public delegate void ScriptControlEvent(uint localID, UUID item, UUID avatarID, uint held, uint changed); + public delegate void ScriptControlEvent(UUID item, UUID avatarID, uint held, uint changed); public event ScriptControlEvent OnScriptControlEvent; public delegate void ScriptAtTargetEvent(uint localID, uint handle, Vector3 targetpos, Vector3 atpos); @@ -1595,7 +1595,7 @@ namespace OpenSim.Region.Framework.Scenes } } - internal void TriggerControlEvent(uint p, UUID scriptUUID, UUID avatarID, uint held, uint _changed) + internal void TriggerControlEvent(UUID scriptUUID, UUID avatarID, uint held, uint _changed) { ScriptControlEvent handlerScriptControlEvent = OnScriptControlEvent; if (handlerScriptControlEvent != null) @@ -1604,7 +1604,7 @@ namespace OpenSim.Region.Framework.Scenes { try { - d(p, scriptUUID, avatarID, held, _changed); + d(scriptUUID, avatarID, held, _changed); } catch (Exception e) { 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 struct ScriptControllers { public UUID itemID; - public uint objID; public ScriptControlled ignoreControls; public ScriptControlled eventControls; } @@ -3468,7 +3467,6 @@ namespace OpenSim.Region.Framework.Scenes obj.eventControls = ScriptControlled.CONTROL_ZERO; obj.itemID = Script_item_UUID; - obj.objID = Obj_localID; if (pass_on == 0 && accept == 0) { IgnoredControls |= (ScriptControlled)controls; @@ -3611,7 +3609,7 @@ namespace OpenSim.Region.Framework.Scenes if (localHeld != ScriptControlled.CONTROL_ZERO || localChange != ScriptControlled.CONTROL_ZERO) { // only send if still pressed or just changed - m_scene.EventManager.TriggerControlEvent(scriptControlData.objID, scriptUUID, UUID, (uint)localHeld, (uint)localChange); + m_scene.EventManager.TriggerControlEvent(scriptUUID, UUID, (uint)localHeld, (uint)localChange); } } } -- cgit v1.1