aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorUbitUmarov2016-08-07 20:53:38 +0100
committerUbitUmarov2016-08-07 21:13:58 +0100
commita30f75cfdc7e22ae108d2e48597c80166680a45d (patch)
treed377dbd54b69d9df1e164422c42d92613c68ab0b /OpenSim/Framework
parentmove updates from updates queues into udp queues acording to their payload es... (diff)
downloadopensim-SC-a30f75cfdc7e22ae108d2e48597c80166680a45d.zip
opensim-SC-a30f75cfdc7e22ae108d2e48597c80166680a45d.tar.gz
opensim-SC-a30f75cfdc7e22ae108d2e48597c80166680a45d.tar.bz2
opensim-SC-a30f75cfdc7e22ae108d2e48597c80166680a45d.tar.xz
fix entity update flags update
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/IClientAPI.cs17
1 files changed, 8 insertions, 9 deletions
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs
index 0140733..848d574 100644
--- a/OpenSim/Framework/IClientAPI.cs
+++ b/OpenSim/Framework/IClientAPI.cs
@@ -606,21 +606,20 @@ namespace OpenSim.Framework
606 get { return m_updateTime; } 606 get { return m_updateTime; }
607 } 607 }
608 608
609 public virtual void Update(EntityUpdate update) 609 public virtual void Update(EntityUpdate oldupdate)
610 { 610 {
611 PrimUpdateFlags updateFlags = update.Flags; 611 // we are on the new one
612 if(updateFlags.HasFlag(PrimUpdateFlags.CancelKill)) 612 PrimUpdateFlags updateFlags = oldupdate.Flags;
613 if(m_flags.HasFlag(PrimUpdateFlags.CancelKill))
613 m_flags = PrimUpdateFlags.FullUpdate; 614 m_flags = PrimUpdateFlags.FullUpdate;
614 else if(m_flags.HasFlag(PrimUpdateFlags.Kill))
615 return;
616 else if(updateFlags.HasFlag(PrimUpdateFlags.Kill)) 615 else if(updateFlags.HasFlag(PrimUpdateFlags.Kill))
617 m_flags = PrimUpdateFlags.Kill; 616 return;
618 else 617 else // kill case will just merge in
619 m_flags |= updateFlags; 618 m_flags |= updateFlags;
620 619
621 // Use the older of the updates as the updateTime 620 // Use the older of the updates as the updateTime
622 if (Util.EnvironmentTickCountCompare(UpdateTime, update.UpdateTime) > 0) 621 if (Util.EnvironmentTickCountCompare(UpdateTime, oldupdate.UpdateTime) > 0)
623 m_updateTime = update.UpdateTime; 622 m_updateTime = oldupdate.UpdateTime;
624 } 623 }
625 624
626 public EntityUpdate(ISceneEntity entity, PrimUpdateFlags flags) 625 public EntityUpdate(ISceneEntity entity, PrimUpdateFlags flags)