aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
diff options
context:
space:
mode:
authorlbsa712007-08-16 17:08:03 +0000
committerlbsa712007-08-16 17:08:03 +0000
commit25fd8d02738e61e81f93ac784b02ab84697ee528 (patch)
treedb1dda71b3aa86770fa90ae84d4ac361a6fd84c7 /OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
parentDeleted old inventoryCache.cs (diff)
downloadopensim-SC_OLD-25fd8d02738e61e81f93ac784b02ab84697ee528.zip
opensim-SC_OLD-25fd8d02738e61e81f93ac784b02ab84697ee528.tar.gz
opensim-SC_OLD-25fd8d02738e61e81f93ac784b02ab84697ee528.tar.bz2
opensim-SC_OLD-25fd8d02738e61e81f93ac784b02ab84697ee528.tar.xz
* Introduced IScriptHost as an interface to fetching object data from scripts.
* This meant introducing AbsolutePosition on all objects (since SimChat wants that)
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
index b901d23..3f90723 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
@@ -159,7 +159,7 @@ namespace OpenSim.Region.Environment.Scenes
159 if (this.Avatars.ContainsKey(fromAgentID)) 159 if (this.Avatars.ContainsKey(fromAgentID))
160 { 160 {
161 avatar = this.Avatars[fromAgentID]; 161 avatar = this.Avatars[fromAgentID];
162 fromPos = avatar.Pos; 162 fromPos = avatar.AbsolutePosition;
163 fromName = avatar.Firstname + " " + avatar.Lastname; 163 fromName = avatar.Firstname + " " + avatar.Lastname;
164 avatar = null; 164 avatar = null;
165 } 165 }
@@ -170,7 +170,7 @@ namespace OpenSim.Region.Environment.Scenes
170 if (this.Avatars.ContainsKey(presence.ControllingClient.AgentId)) 170 if (this.Avatars.ContainsKey(presence.ControllingClient.AgentId))
171 { 171 {
172 avatar = this.Avatars[presence.ControllingClient.AgentId]; 172 avatar = this.Avatars[presence.ControllingClient.AgentId];
173 dis = (int)avatar.Pos.GetDistanceTo(fromPos); 173 dis = (int)avatar.AbsolutePosition.GetDistanceTo(fromPos);
174 } 174 }
175 175
176 switch (type) 176 switch (type)
@@ -354,7 +354,7 @@ namespace OpenSim.Region.Environment.Scenes
354 if (originPrim != null) 354 if (originPrim != null)
355 { 355 {
356 SceneObjectGroup copy = originPrim.Copy(); 356 SceneObjectGroup copy = originPrim.Copy();
357 copy.Pos = copy.Pos + offset; 357 copy.AbsolutePosition = copy.AbsolutePosition + offset;
358 this.Entities.Add(copy.UUID, copy); 358 this.Entities.Add(copy.UUID, copy);
359 359
360 copy.ScheduleGroupForFullUpdate(); 360 copy.ScheduleGroupForFullUpdate();