From e8478dadc87586aaed173f60c44bc5ee2722d9dd Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 10 May 2008 10:28:49 +0000 Subject: * Experiment in Zerocoding. --- .../Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs | 3 +++ .../Region/Environment/Modules/Agent/TextureSender/TextureSender.cs | 3 +++ OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs index 9a6b83a..6270893 100644 --- a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs +++ b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs @@ -193,6 +193,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction ConfirmXferPacketPacket newPack = new ConfirmXferPacketPacket(); newPack.XferID.ID = xferID; newPack.XferID.Packet = packetID; + newPack.Header.Zerocoded = true; ourClient.OutPacket(newPack, ThrottleOutPacketType.Asset); if ((packetID & 0x80000000) != 0) { @@ -250,6 +251,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction newPack.XferID.VFileID = Asset.FullID; newPack.XferID.FilePath = 0; newPack.XferID.Filename = new byte[0]; + newPack.Header.Zerocoded = true; ourClient.OutPacket(newPack, ThrottleOutPacketType.Asset); } @@ -260,6 +262,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction newPack.AssetBlock.Type = Asset.Type; newPack.AssetBlock.Success = true; newPack.AssetBlock.UUID = Asset.FullID; + newPack.Header.Zerocoded = true; ourClient.OutPacket(newPack, ThrottleOutPacketType.Asset); m_finished = true; if (m_createItem) diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs index 02c541b..e19274e 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs @@ -157,6 +157,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender im.ImageID.Size = (uint) m_asset.Data.Length; im.ImageData.Data = m_asset.Data; im.ImageID.Codec = 2; + im.Header.Zerocoded = true; RequestUser.OutPacket(im, ThrottleOutPacketType.Texture); PacketCounter++; } @@ -170,6 +171,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender im.ImageData.Data = new byte[600]; Array.Copy(m_asset.Data, 0, im.ImageData.Data, 0, 600); im.ImageID.Codec = 2; + im.Header.Zerocoded = true; RequestUser.OutPacket(im, ThrottleOutPacketType.Texture); PacketCounter++; } @@ -193,6 +195,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender m_asset.FullID.ToString()); return; } + im.Header.Zerocoded = true; RequestUser.OutPacket(im, ThrottleOutPacketType.Texture); PacketCounter++; } diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index aae6af8..1ba17dc 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -1424,6 +1424,7 @@ namespace OpenSim.Region.Environment.Scenes objPropDB.Name = Helpers.StringToField(RootPart.Name); objPropDB.Description = Helpers.StringToField(RootPart.Description); objPropFamilyPack.ObjectData = objPropDB; + objPropFamilyPack.Header.Zerocoded = true; remoteClient.OutPacket(objPropFamilyPack, ThrottleOutPacketType.Task); } @@ -1975,7 +1976,7 @@ namespace OpenSim.Region.Environment.Scenes // proper.ObjectData[0].AggregatePerms = 53; // proper.ObjectData[0].AggregatePermTextures = 0; // proper.ObjectData[0].AggregatePermTexturesOwner = 0; - + proper.Header.Zerocoded = true; client.OutPacket(proper, ThrottleOutPacketType.Task); } -- cgit v1.1