diff options
author | Justin Clarke Casey | 2008-10-15 14:56:58 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-10-15 14:56:58 +0000 |
commit | 063ba29ff8e6fa6982203d74b0c3ad75342490e8 (patch) | |
tree | afdb0283dded84402c20801b331c71a1e5969728 /OpenSim/Region/Environment/Modules/Agent/TextureSender | |
parent | * Create a new ViewerEffectPacket for each viewer rather than reusing the pac... (diff) | |
download | opensim-SC_OLD-063ba29ff8e6fa6982203d74b0c3ad75342490e8.zip opensim-SC_OLD-063ba29ff8e6fa6982203d74b0c3ad75342490e8.tar.gz opensim-SC_OLD-063ba29ff8e6fa6982203d74b0c3ad75342490e8.tar.bz2 opensim-SC_OLD-063ba29ff8e6fa6982203d74b0c3ad75342490e8.tar.xz |
* refactor: rename SendImagePart to SendImageFirstPart since this is more descriptive of its actual function
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Agent/TextureSender')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs index dbfd4d2..2835cfa 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs | |||
@@ -156,18 +156,16 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender | |||
156 | { | 156 | { |
157 | if (NumPackets == 0) | 157 | if (NumPackets == 0) |
158 | { | 158 | { |
159 | 159 | RequestUser.SendImageFirstPart(1, m_asset.FullID, (uint)m_asset.Data.Length, m_asset.Data, 2); | |
160 | RequestUser.SendImagePart(1, m_asset.FullID, (uint)m_asset.Data.Length, m_asset.Data, 2); | ||
161 | |||
162 | PacketCounter++; | 160 | PacketCounter++; |
163 | } | 161 | } |
164 | else | 162 | else |
165 | { | 163 | { |
166 | |||
167 | byte[] ImageData1 = new byte[600]; | 164 | byte[] ImageData1 = new byte[600]; |
168 | Array.Copy(m_asset.Data, 0, ImageData1, 0, 600); | 165 | Array.Copy(m_asset.Data, 0, ImageData1, 0, 600); |
169 | 166 | ||
170 | RequestUser.SendImagePart((ushort)(NumPackets), m_asset.FullID, (uint)m_asset.Data.Length, ImageData1, 2); | 167 | RequestUser.SendImageFirstPart( |
168 | (ushort)(NumPackets), m_asset.FullID, (uint)m_asset.Data.Length, ImageData1, 2); | ||
171 | PacketCounter++; | 169 | PacketCounter++; |
172 | } | 170 | } |
173 | } | 171 | } |
@@ -193,7 +191,6 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender | |||
193 | } | 191 | } |
194 | RequestUser.OutPacket(im, ThrottleOutPacketType.Texture); | 192 | RequestUser.OutPacket(im, ThrottleOutPacketType.Texture); |
195 | 193 | ||
196 | |||
197 | PacketCounter++; | 194 | PacketCounter++; |
198 | } | 195 | } |
199 | } | 196 | } |