aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authorTeravus Ovares2008-06-08 21:15:44 +0000
committerTeravus Ovares2008-06-08 21:15:44 +0000
commitc53892aa9015e658f98c6440e416b538efe05363 (patch)
treeab8366bd836870eefbc408a2e29eee8ee2d73a66 /OpenSim/Region/ScriptEngine/Common
parent*Updated prebuild.xml for support with monodevelop (diff)
downloadopensim-SC_OLD-c53892aa9015e658f98c6440e416b538efe05363.zip
opensim-SC_OLD-c53892aa9015e658f98c6440e416b538efe05363.tar.gz
opensim-SC_OLD-c53892aa9015e658f98c6440e416b538efe05363.tar.bz2
opensim-SC_OLD-c53892aa9015e658f98c6440e416b538efe05363.tar.xz
* Added compiler pre-processor, #if SPAM to SensorRepeat... so if you really want to see, "[AsyncLSL]: GetSensorList missing localID" and SetSensorEvent, then you can #define SPAM
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs
index 82bd3ac..aaea2ee 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs
@@ -24,7 +24,7 @@
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27//#define SPAM
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using libsecondlife; 30using libsecondlife;
@@ -70,8 +70,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
70 public void SetSenseRepeatEvent(uint m_localID, LLUUID m_itemID, 70 public void SetSenseRepeatEvent(uint m_localID, LLUUID m_itemID,
71 string name, LLUUID keyID, int type, double range, double arc, double sec, SceneObjectPart host) 71 string name, LLUUID keyID, int type, double range, double arc, double sec, SceneObjectPart host)
72 { 72 {
73 #if SPAM
73 Console.WriteLine("SetSensorEvent"); 74 Console.WriteLine("SetSensorEvent");
74 75 #endif
75 // Always remove first, in case this is a re-set 76 // Always remove first, in case this is a re-set
76 UnSetSenseRepeaterEvents(m_localID, m_itemID); 77 UnSetSenseRepeaterEvents(m_localID, m_itemID);
77 if (sec == 0) // Disabling timer 78 if (sec == 0) // Disabling timer
@@ -161,7 +162,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
161 Dictionary<LLUUID, LSL_Types.list> Obj = null; 162 Dictionary<LLUUID, LSL_Types.list> Obj = null;
162 if (!SenseEvents.TryGetValue(m_localID, out Obj)) 163 if (!SenseEvents.TryGetValue(m_localID, out Obj))
163 { 164 {
165 #if SPAM
164 m_CmdManager.m_ScriptEngine.Log.Info("[AsyncLSL]: GetSensorList missing localID: " + m_localID); 166 m_CmdManager.m_ScriptEngine.Log.Info("[AsyncLSL]: GetSensorList missing localID: " + m_localID);
167 #endif
165 return null; 168 return null;
166 } 169 }
167 lock (Obj) 170 lock (Obj)
@@ -170,7 +173,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
170 LSL_Types.list SenseList = null; 173 LSL_Types.list SenseList = null;
171 if (!Obj.TryGetValue(m_itemID, out SenseList)) 174 if (!Obj.TryGetValue(m_itemID, out SenseList))
172 { 175 {
176 #if SPAM
173 m_CmdManager.m_ScriptEngine.Log.Info("[AsyncLSL]: GetSensorList missing itemID: " + m_itemID); 177 m_CmdManager.m_ScriptEngine.Log.Info("[AsyncLSL]: GetSensorList missing itemID: " + m_itemID);
178 #endif
174 return null; 179 return null;
175 } 180 }
176 return SenseList; 181 return SenseList;
@@ -185,7 +190,10 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
185 190
186 if (SensePoint == null) 191 if (SensePoint == null)
187 { 192 {
193
194 #if SPAM
188 //m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep (SensePoint == null) for "+ts.itemID.ToString()); 195 //m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep (SensePoint == null) for "+ts.itemID.ToString());
196 #endif
189 return; 197 return;
190 } 198 }
191 //m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep Scan"); 199 //m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep Scan");
@@ -286,8 +294,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
286 } 294 }
287 } 295 }
288 } 296 }
297 #if SPAM
289 //m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep SenseLock"); 298 //m_ScriptEngine.Log.Info("[AsyncLSL]: Enter SensorSweep SenseLock");
290 299 #endif
291 lock (SenseLock) 300 lock (SenseLock)
292 { 301 {
293 // Create object if it doesn't exist 302 // Create object if it doesn't exist