aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorUbitUmarov2016-08-07 20:53:38 +0100
committerUbitUmarov2016-08-07 20:53:38 +0100
commita0538eb53d8d1d08f4bffb2e9502537dbad3f812 (patch)
tree3eaa6c4b1b3ce8102e504db5f5b47a77650d0ebd /OpenSim/Framework
parentmove updates from updates queues into udp queues acording to their payload es... (diff)
downloadopensim-SC-a0538eb53d8d1d08f4bffb2e9502537dbad3f812.zip
opensim-SC-a0538eb53d8d1d08f4bffb2e9502537dbad3f812.tar.gz
opensim-SC-a0538eb53d8d1d08f4bffb2e9502537dbad3f812.tar.bz2
opensim-SC-a0538eb53d8d1d08f4bffb2e9502537dbad3f812.tar.xz
fix entity update flags update
Diffstat (limited to '')
-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)