diff options
author | gareth | 2007-04-15 02:31:34 +0000 |
---|---|---|
committer | gareth | 2007-04-15 02:31:34 +0000 |
commit | f9b7cc53deb93fc3528929385d3f76519083c927 (patch) | |
tree | ae3fbc308febed796772525be7d9a55e4ce24b8e /OpenSim.RegionServer/world | |
parent | In the grid, there is life! (diff) | |
download | opensim-SC-f9b7cc53deb93fc3528929385d3f76519083c927.zip opensim-SC-f9b7cc53deb93fc3528929385d3f76519083c927.tar.gz opensim-SC-f9b7cc53deb93fc3528929385d3f76519083c927.tar.bz2 opensim-SC-f9b7cc53deb93fc3528929385d3f76519083c927.tar.xz |
W00t! multiple sims!
Misc bugfixes
Child agents!!!!!!
General sexy stuff
Diffstat (limited to 'OpenSim.RegionServer/world')
-rw-r--r-- | OpenSim.RegionServer/world/AvatarUpdate.cs | 3 | ||||
-rw-r--r-- | OpenSim.RegionServer/world/World.cs | 29 |
2 files changed, 18 insertions, 14 deletions
diff --git a/OpenSim.RegionServer/world/AvatarUpdate.cs b/OpenSim.RegionServer/world/AvatarUpdate.cs index d315de7..453f419 100644 --- a/OpenSim.RegionServer/world/AvatarUpdate.cs +++ b/OpenSim.RegionServer/world/AvatarUpdate.cs | |||
@@ -89,7 +89,8 @@ namespace OpenSim.world | |||
89 | { | 89 | { |
90 | System.Text.Encoding _enc = System.Text.Encoding.ASCII; | 90 | System.Text.Encoding _enc = System.Text.Encoding.ASCII; |
91 | //send a objectupdate packet with information about the clients avatar | 91 | //send a objectupdate packet with information about the clients avatar |
92 | ObjectUpdatePacket objupdate = new ObjectUpdatePacket(); | 92 | |
93 | ObjectUpdatePacket objupdate = new ObjectUpdatePacket(); | ||
93 | objupdate.RegionData.RegionHandle = m_regionHandle; | 94 | objupdate.RegionData.RegionHandle = m_regionHandle; |
94 | objupdate.RegionData.TimeDilation = 64096; | 95 | objupdate.RegionData.TimeDilation = 64096; |
95 | objupdate.ObjectData = new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock[1]; | 96 | objupdate.ObjectData = new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock[1]; |
diff --git a/OpenSim.RegionServer/world/World.cs b/OpenSim.RegionServer/world/World.cs index a973c6c..425a135 100644 --- a/OpenSim.RegionServer/world/World.cs +++ b/OpenSim.RegionServer/world/World.cs | |||
@@ -371,19 +371,22 @@ namespace OpenSim.world | |||
371 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("World.cs:AddViewerAgent() - Adding new avatar to world"); | 371 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("World.cs:AddViewerAgent() - Adding new avatar to world"); |
372 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("World.cs:AddViewerAgent() - Starting RegionHandshake "); | 372 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("World.cs:AddViewerAgent() - Starting RegionHandshake "); |
373 | newAvatar.SendRegionHandshake(this); | 373 | newAvatar.SendRegionHandshake(this); |
374 | PhysicsVector pVec = new PhysicsVector(newAvatar.Pos.X, newAvatar.Pos.Y, newAvatar.Pos.Z); | 374 | if(!agentClient.m_child) { |
375 | lock (this.LockPhysicsEngine) | 375 | PhysicsVector pVec = new PhysicsVector(newAvatar.Pos.X, newAvatar.Pos.Y, newAvatar.Pos.Z); |
376 | { | 376 | lock (this.LockPhysicsEngine) |
377 | newAvatar.PhysActor = this.phyScene.AddAvatar(pVec); | 377 | { |
378 | } | 378 | newAvatar.PhysActor = this.phyScene.AddAvatar(pVec); |
379 | lock (Entities) | 379 | } |
380 | { | 380 | } |
381 | this.Entities.Add(agentClient.AgentID, newAvatar); | 381 | lock (Entities) |
382 | } | 382 | { |
383 | lock (Avatars) | 383 | this.Entities.Add(agentClient.AgentID, newAvatar); |
384 | { | 384 | } |
385 | this.Avatars.Add(agentClient.AgentID, newAvatar); | 385 | lock (Avatars) |
386 | } | 386 | { |
387 | this.Avatars.Add(agentClient.AgentID, newAvatar); | ||
388 | } | ||
389 | |||
387 | } | 390 | } |
388 | 391 | ||
389 | public void RemoveViewerAgent(SimClient agentClient) | 392 | public void RemoveViewerAgent(SimClient agentClient) |