aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs12
1 files changed, 3 insertions, 9 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 44d2316..a3d528d 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -472,20 +472,14 @@ namespace OpenSim.Region.Environment.Scenes
472 { 472 {
473 ScenePartUpdate update = m_updateTimes[part.UUID]; 473 ScenePartUpdate update = m_updateTimes[part.UUID];
474 474
475 // Two updates can occur with the same timestamp (especially 475 // We deal with the possibility that two updates occur at the same unix time
476 // since our timestamp resolution is to the nearest second). Therefore, we still need 476 // at the update point itself.
477 // to send an update even if the last full update time is identical to the part's
478 // update timestamp.
479 //
480 // If we don't do this, various events (such as linking and delinking in the same
481 // second), will stop working properly!
482 if (update.LastFullUpdateTime < part.TimeStampFull) 477 if (update.LastFullUpdateTime < part.TimeStampFull)
483 { 478 {
484// m_log.DebugFormat( 479// m_log.DebugFormat(
485// "[SCENE PRESENCE]: Fully updating prim {0}, {1} - part timestamp {2}", 480// "[SCENE PRESENCE]: Fully updating prim {0}, {1} - part timestamp {2}",
486// part.Name, part.UUID, part.TimeStampFull); 481// part.Name, part.UUID, part.TimeStampFull);
487 482
488 //need to do a full update
489 part.SendFullUpdate(ControllingClient, GenerateClientFlags(part.UUID)); 483 part.SendFullUpdate(ControllingClient, GenerateClientFlags(part.UUID));
490 484
491 // We'll update to the part's timestamp rather than the current time to 485 // We'll update to the part's timestamp rather than the current time to
@@ -1658,7 +1652,7 @@ namespace OpenSim.Region.Environment.Scenes
1658 gdb.GodLevel = (byte)0; 1652 gdb.GodLevel = (byte)0;
1659 m_godlevel = 0; 1653 m_godlevel = 0;
1660 } 1654 }
1661 1655
1662 gdb.Token = token; 1656 gdb.Token = token;
1663 //respondPacket.AgentData = (GrantGodlikePowersPacket.AgentDataBlock)ablock; 1657 //respondPacket.AgentData = (GrantGodlikePowersPacket.AgentDataBlock)ablock;
1664 respondPacket.GrantData = gdb; 1658 respondPacket.GrantData = gdb;