Skip to content

Commit

Permalink
Tag 0.8.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
lkalif committed Jul 24, 2010
2 parents a4c0e91 + 473b667 commit d443b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenMetaverse/AgentManagerMovement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ public void SendUpdate(bool reliable, Simulator simulator)
{
// Since version 1.40.4 of the Linden simulator, sending this update
// causes corruption of the agent position in the simulator
if (!simulator.HandshakeComplete)
if (simulator != null && (!simulator.HandshakeComplete))
return;

Vector3 origin = Camera.Position;
Expand Down Expand Up @@ -675,7 +675,7 @@ public void SendManualUpdate(AgentManager.ControlFlags controlFlags, Vector3 pos
{
// Since version 1.40.4 of the Linden simulator, sending this update
// causes corruption of the agent position in the simulator
if (!Client.Network.CurrentSim.HandshakeComplete)
if (Client.Network.CurrentSim != null && (!Client.Network.CurrentSim.HandshakeComplete))
return;

AgentUpdatePacket update = new AgentUpdatePacket();
Expand Down

0 comments on commit d443b83

Please sign in to comment.