Vector3 pos;\r
if (!existing.Contains(key) || !sim.AvatarPositions.TryGetValue(key,out pos))\r
{\r
- // not not here anymore\r
+ // not here anymore\r
removed.Add(key);\r
continue;\r
}\r
+\r
+ // CoarseLocationUpdate gives us hight of 0 when actual height is\r
+ // between 1024-4096m. Hard code somewhere in the middle (2000m)\r
+ if (pos.Z < 0.1)\r
+ {\r
+ pos.Z = 2000f;\r
+ }\r
+\r
int d = (int)Vector3d.Distance(ToVector3D(sim, pos), mypos);\r
if (sim != client.Network.CurrentSim && d > MAX_DISTANCE)\r
{\r