From 03f5ff9dc21767d1757c9b9ccd3c7ef40b49880f Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 10 Apr 2007 10:45:46 +0000 Subject: --- OpenSim.RegionServer/world/AvatarUpdate.cs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'OpenSim.RegionServer/world') diff --git a/OpenSim.RegionServer/world/AvatarUpdate.cs b/OpenSim.RegionServer/world/AvatarUpdate.cs index cfb138a..d315de7 100644 --- a/OpenSim.RegionServer/world/AvatarUpdate.cs +++ b/OpenSim.RegionServer/world/AvatarUpdate.cs @@ -109,8 +109,11 @@ namespace OpenSim.world client.OutPacket(objupdate); if (client.AgentID != ControllingClient.AgentID) { - client.ClientAvatar.SendAppearanceToOtherAgent(this.ControllingClient); - SendAppearanceToOtherAgent(client); + //the below line is already in Simclient.cs at line number 245 , directly below the call to this method + //if there is a problem/bug with that , then lets fix it there rather than duplicating it here + //client.ClientAvatar.SendAppearanceToOtherAgent(this.ControllingClient); + + SendAppearanceToOtherAgent(client); } } } @@ -142,10 +145,12 @@ namespace OpenSim.world avp.VisualParam = new AvatarAppearancePacket.VisualParamBlock[218]; avp.ObjectData.TextureEntry = this.avatarAppearanceTexture.ToBytes(); - AgentWearablesUpdatePacket aw = new AgentWearablesUpdatePacket(); + //a wearable update packets should only be sent about the viewers/agents own avatar not for other avatars + //but it seems that the following code only created the packets and never actually sent them anyway + /*AgentWearablesUpdatePacket aw = new AgentWearablesUpdatePacket(); aw.AgentData.AgentID = this.ControllingClient.AgentID; - aw.AgentData.SessionID = userInfo.SessionID; - aw.AgentData.SerialNum = (uint)(new Random()).Next(); + aw.AgentData.SessionID = userInfo.SessionID; + aw.AgentData.SerialNum = 0; //removed the use of a random number as a random number could be less than the last number, should have a counter variable for this aw.WearableData = new AgentWearablesUpdatePacket.WearableDataBlock[13]; AgentWearablesUpdatePacket.WearableDataBlock awb; @@ -156,8 +161,8 @@ namespace OpenSim.world awb.AssetID = this.Wearables[i].AssetID; awb.ItemID = this.Wearables[i].ItemID; aw.WearableData[i] = awb; - } - + }*/ + AvatarAppearancePacket.VisualParamBlock avblock = null; for (int i = 0; i < 218; i++) { -- cgit v1.1