fix packet type
parent
0970dc04e2
commit
fdb1ce827b
|
@ -3898,13 +3898,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
zc.AddByte(1); // block count
|
zc.AddByte(1); // block count
|
||||||
|
|
||||||
|
ThrottleOutPacketType ptype = ThrottleOutPacketType.Task;
|
||||||
if (ent is ScenePresence)
|
if (ent is ScenePresence)
|
||||||
|
{
|
||||||
CreateAvatarUpdateBlock(ent as ScenePresence, zc);
|
CreateAvatarUpdateBlock(ent as ScenePresence, zc);
|
||||||
|
ptype |= ThrottleOutPacketType.HighPriority;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
CreatePrimUpdateBlock(ent as SceneObjectPart, (ScenePresence)SceneAgent, zc);
|
CreatePrimUpdateBlock(ent as SceneObjectPart, (ScenePresence)SceneAgent, zc);
|
||||||
|
|
||||||
buf.DataLength = zc.Finish();
|
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)
|
public void SendEntityTerseUpdateImmediate(ISceneEntity ent)
|
||||||
|
|
Loading…
Reference in New Issue