fix packet type

0.9.1.0-post-fixes
UbitUmarov 2019-03-06 22:48:00 +00:00
parent 0970dc04e2
commit fdb1ce827b
1 changed files with 5 additions and 1 deletions

View File

@ -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)