mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
fix packet type
This commit is contained in:
@@ -3898,13 +3898,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
zc.AddByte(1); // block count
|
||||
|
||||
ThrottleOutPacketType ptype = ThrottleOutPacketType.Task;
|
||||
if (ent is ScenePresence)
|
||||
{
|
||||
CreateAvatarUpdateBlock(ent as ScenePresence, zc);
|
||||
ptype |= ThrottleOutPacketType.HighPriority;
|
||||
}
|
||||
else
|
||||
CreatePrimUpdateBlock(ent as SceneObjectPart, (ScenePresence)SceneAgent, zc);
|
||||
|
||||
buf.DataLength = zc.Finish();
|
||||
m_udpServer.SendUDPPacket(m_udpClient, buf, ThrottleOutPacketType.Task | ThrottleOutPacketType.HighPriority, null, false, false);
|
||||
m_udpServer.SendUDPPacket(m_udpClient, buf, ptype , null, false, false);
|
||||
}
|
||||
|
||||
public void SendEntityTerseUpdateImmediate(ISceneEntity ent)
|
||||
|
||||
Reference in New Issue
Block a user