aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins
diff options
context:
space:
mode:
authorJeff Ames2008-03-18 14:51:42 +0000
committerJeff Ames2008-03-18 14:51:42 +0000
commitbf8b5844f24d294c459f54147bd511e7112288bf (patch)
tree1b6a1ba4e9888d43694a8a33c21beb6913ce2d3a /OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins
parent* Applied Grumly57 patch for #781; Thanks, Grumly! (diff)
downloadopensim-SC_OLD-bf8b5844f24d294c459f54147bd511e7112288bf.zip
opensim-SC_OLD-bf8b5844f24d294c459f54147bd511e7112288bf.tar.gz
opensim-SC_OLD-bf8b5844f24d294c459f54147bd511e7112288bf.tar.bz2
opensim-SC_OLD-bf8b5844f24d294c459f54147bd511e7112288bf.tar.xz
Formatting cleanup. Minor refactoring.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins')
-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)