From eafd91ba809c839e99c27055f38fe038e317f08d Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 22 May 2007 11:25:34 +0000 Subject: More refactoring. --- OpenSim.RegionServer/world/World.PacketHandlers.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim.RegionServer/world/World.PacketHandlers.cs') diff --git a/OpenSim.RegionServer/world/World.PacketHandlers.cs b/OpenSim.RegionServer/world/World.PacketHandlers.cs index d12013a..119bb19 100644 --- a/OpenSim.RegionServer/world/World.PacketHandlers.cs +++ b/OpenSim.RegionServer/world/World.PacketHandlers.cs @@ -168,6 +168,20 @@ namespace OpenSim.world return true; } + public void SendAvatarsToClient(ClientView RemoteClient) + { + foreach (ClientView client in m_clientThreads.Values) + { + if (client.AgentID != RemoteClient.AgentID) + { + // ObjectUpdatePacket objupdate = client.ClientAvatar.CreateUpdatePacket(); + // RemoteClient.OutPacket(objupdate); + client.ClientAvatar.SendUpdateToOtherClient(RemoteClient.ClientAvatar); + client.ClientAvatar.SendAppearanceToOtherAgent(RemoteClient.ClientAvatar); + } + } + } + /* public void RequestMapBlock(ClientView simClient, int minX, int minY, int maxX, int maxY) { -- cgit v1.1