diff options
author | Teravus Ovares | 2007-11-18 15:54:05 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-11-18 15:54:05 +0000 |
commit | 615b40b68b2311433b855f8c1e961a8b71eb9b65 (patch) | |
tree | ce9620d6f9e59e5e841f9746d738f6a71063eae4 /OpenSim/Region/Environment/Modules/TextureDownloadModule.cs | |
parent | cleaned up some mono compiler warnings (diff) | |
download | opensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.zip opensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.tar.gz opensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.tar.bz2 opensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.tar.xz |
* Refactored IClientAPI.OutPacket to require a second mandatory parameter. This parameter has an enum:int ThrottleOutPacketType and contains types; Resend, Land, Wind, Cloud, Task, Texture, and Asset.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/TextureDownloadModule.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/TextureDownloadModule.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs b/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs index 87d6231..902b669 100644 --- a/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs +++ b/OpenSim/Region/Environment/Modules/TextureDownloadModule.cs | |||
@@ -212,7 +212,7 @@ namespace OpenSim.Region.Environment.Modules | |||
212 | im.ImageID.Size = (uint) m_asset.Data.Length; | 212 | im.ImageID.Size = (uint) m_asset.Data.Length; |
213 | im.ImageData.Data = m_asset.Data; | 213 | im.ImageData.Data = m_asset.Data; |
214 | im.ImageID.Codec = 2; | 214 | im.ImageID.Codec = 2; |
215 | req.RequestUser.OutPacket(im); | 215 | req.RequestUser.OutPacket(im, ThrottleOutPacketType.Texture); |
216 | PacketCounter++; | 216 | PacketCounter++; |
217 | } | 217 | } |
218 | else | 218 | else |
@@ -225,7 +225,7 @@ namespace OpenSim.Region.Environment.Modules | |||
225 | im.ImageData.Data = new byte[600]; | 225 | im.ImageData.Data = new byte[600]; |
226 | Array.Copy(m_asset.Data, 0, im.ImageData.Data, 0, 600); | 226 | Array.Copy(m_asset.Data, 0, im.ImageData.Data, 0, 600); |
227 | im.ImageID.Codec = 2; | 227 | im.ImageID.Codec = 2; |
228 | req.RequestUser.OutPacket(im); | 228 | req.RequestUser.OutPacket(im, ThrottleOutPacketType.Texture); |
229 | PacketCounter++; | 229 | PacketCounter++; |
230 | } | 230 | } |
231 | } | 231 | } |
@@ -239,7 +239,7 @@ namespace OpenSim.Region.Environment.Modules | |||
239 | if (size > 1000) size = 1000; | 239 | if (size > 1000) size = 1000; |
240 | im.ImageData.Data = new byte[size]; | 240 | im.ImageData.Data = new byte[size]; |
241 | Array.Copy(m_asset.Data, 600 + (1000*(PacketCounter - 1)), im.ImageData.Data, 0, size); | 241 | Array.Copy(m_asset.Data, 600 + (1000*(PacketCounter - 1)), im.ImageData.Data, 0, size); |
242 | req.RequestUser.OutPacket(im); | 242 | req.RequestUser.OutPacket(im, ThrottleOutPacketType.Texture); |
243 | PacketCounter++; | 243 | PacketCounter++; |
244 | } | 244 | } |
245 | } | 245 | } |