From: Latif Khalifa Date: Sat, 18 Jul 2009 22:29:19 +0000 (+0000) Subject: Work around incompatibility with Opensim, thanks nephrael for the patch X-Git-Tag: release-1.6~9 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e6b801619949d507ee8decc3966c6224375da09f;p=radegast%2Fradegast.git Work around incompatibility with Opensim, thanks nephrael for the patch git-svn-id: https://radegast.googlecode.com/svn/trunk@115 f7a694da-4d33-11de-9ad6-1127a62b9fcd --- diff --git a/Radegast/GUI/Consoles/ChatConsole.cs b/Radegast/GUI/Consoles/ChatConsole.cs index e66d9c1..a261856 100644 --- a/Radegast/GUI/Consoles/ChatConsole.cs +++ b/Radegast/GUI/Consoles/ChatConsole.cs @@ -147,7 +147,7 @@ namespace Radegast void Grid_OnCoarseLocationUpdate(Simulator sim, List newEntries, List removedEntries) { - if (client.Network.CurrentSim.ID != sim.ID || !sim.AvatarPositions.ContainsKey(client.Self.AgentID)) + if (client.Network.CurrentSim.ID != sim.ID) { return; } @@ -165,7 +165,10 @@ namespace Radegast lvwObjects.BeginUpdate(); try { - Vector3 mypos = sim.AvatarPositions[client.Self.AgentID]; + Vector3 mypos = sim.AvatarPositions.ContainsKey(client.Self.AgentID) + ? sim.AvatarPositions[client.Self.AgentID] + : client.Self.SimPosition; + List existing = new List(); List removed = new List();