minor: refactor part of LLClientView.ProcessEntityUpdates() to remove duplicate code
parent
6a8e3907ca
commit
719efdaf1f
|
@ -3783,16 +3783,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
if (!canUseImproved && !canUseCompressed)
|
if (!canUseImproved && !canUseCompressed)
|
||||||
{
|
{
|
||||||
|
ObjectUpdatePacket.ObjectDataBlock updateBlock;
|
||||||
|
|
||||||
if (update.Entity is ScenePresence)
|
if (update.Entity is ScenePresence)
|
||||||
{
|
{
|
||||||
objectUpdateBlocks.Value.Add(CreateAvatarUpdateBlock((ScenePresence)update.Entity));
|
updateBlock = CreateAvatarUpdateBlock((ScenePresence)update.Entity);
|
||||||
objectUpdates.Value.Add(update);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
objectUpdateBlocks.Value.Add(CreatePrimUpdateBlock((SceneObjectPart)update.Entity, this.m_agentId));
|
updateBlock = CreatePrimUpdateBlock((SceneObjectPart)update.Entity, AgentId);
|
||||||
objectUpdates.Value.Add(update);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
objectUpdateBlocks.Value.Add(updateBlock);
|
||||||
|
objectUpdates.Value.Add(update);
|
||||||
}
|
}
|
||||||
else if (!canUseImproved)
|
else if (!canUseImproved)
|
||||||
{
|
{
|
||||||
|
@ -3817,7 +3820,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
#endregion Block Construction
|
#endregion Block Construction
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#region Packet Sending
|
#region Packet Sending
|
||||||
ushort timeDilation = Utils.FloatToUInt16(avgTimeDilation, 0.0f, 1.0f);
|
ushort timeDilation = Utils.FloatToUInt16(avgTimeDilation, 0.0f, 1.0f);
|
||||||
|
|
Loading…
Reference in New Issue