aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-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();