aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs
index 8fea3a3..c025b5b 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs
@@ -142,7 +142,8 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
142 } 142 }
143 143
144 public void SenseOnce(uint m_localID, LLUUID m_itemID, 144 public void SenseOnce(uint m_localID, LLUUID m_itemID,
145 string name, LLUUID keyID, int type, double range, double arc, SceneObjectPart host) 145 string name, LLUUID keyID, int type,
146 double range, double arc, SceneObjectPart host)
146 { 147 {
147 // Add to timer 148 // Add to timer
148 SenseRepeatClass ts = new SenseRepeatClass(); 149 SenseRepeatClass ts = new SenseRepeatClass();
@@ -210,7 +211,6 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
210 211
211 foreach (EntityBase ent in m_CmdManager.m_ScriptEngine.World.Entities.Values) 212 foreach (EntityBase ent in m_CmdManager.m_ScriptEngine.World.Entities.Values)
212 { 213 {
213
214 LLVector3 toRegionPos = ent.AbsolutePosition + regionPos; 214 LLVector3 toRegionPos = ent.AbsolutePosition + regionPos;
215 double dis = Math.Abs((double)Util.GetDistanceTo(toRegionPos, fromRegionPos)); 215 double dis = Math.Abs((double)Util.GetDistanceTo(toRegionPos, fromRegionPos));
216 if (dis <= ts.range) 216 if (dis <= ts.range)