Skip to content

Commit

Permalink
Tag 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lkalif committed Jul 24, 2010
2 parents 17f4354 + 1ef59f3 commit 9a66380
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 @@ -587,7 +587,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 @@ -672,7 +672,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 9a66380

Please sign in to comment.