* Clearing up confusion with Agent.Avatar by making it a SimulationObject that is passed in through the constructor. This should prevent duplicate notions of an avatar in the scene
* Fixed the "you don't own this object" issue after moving a prim. The fix is rather hacky and will be replaced when we stop sending full object updates for every change

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2465 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-03-03 21:01:57 +00:00
parent c8312a0777
commit 871ffb42a6
27 changed files with 429 additions and 417 deletions

View File

@@ -55,7 +55,7 @@ namespace Simian.Extensions
handshake.RegionInfo.TerrainStartHeight11 = 40f;
handshake.RegionInfo2.RegionID = server.Scene.RegionID;
server.UDP.SendPacket(agent.Avatar.ID, handshake, PacketCategory.Transaction);
server.UDP.SendPacket(agent.ID, handshake, PacketCategory.Transaction);
}
void StartPingCheckHandler(Packet packet, Agent agent)
@@ -66,21 +66,21 @@ namespace Simian.Extensions
complete.Header.Reliable = false;
complete.PingID.PingID = start.PingID.PingID;
server.UDP.SendPacket(agent.Avatar.ID, complete, PacketCategory.Overhead);
server.UDP.SendPacket(agent.ID, complete, PacketCategory.Overhead);
}
void LogoutRequestHandler(Packet packet, Agent agent)
{
LogoutReplyPacket reply = new LogoutReplyPacket();
reply.AgentData.AgentID = agent.Avatar.ID;
reply.AgentData.AgentID = agent.ID;
reply.AgentData.SessionID = agent.SessionID;
reply.InventoryData = new LogoutReplyPacket.InventoryDataBlock[1];
reply.InventoryData[0] = new LogoutReplyPacket.InventoryDataBlock();
reply.InventoryData[0].ItemID = UUID.Zero;
server.UDP.SendPacket(agent.Avatar.ID, reply, PacketCategory.Transaction);
server.UDP.SendPacket(agent.ID, reply, PacketCategory.Transaction);
server.Scene.ObjectRemove(this, agent.Avatar.ID);
server.Scene.ObjectRemove(this, agent.ID);
}
}
}