LIBOMV-712: TerrainManager updating Wind from Wrong Simulators

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3141 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Latif Khalifa
2009-10-10 21:54:21 +00:00
parent 22900a4e44
commit d5fff1abc1
2 changed files with 12 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ namespace OpenMetaverse.TestClient
int xPos = (int)Utils.Clamp(agentPos.X, 0.0f, 255.0f) / 16;
int yPos = (int)Utils.Clamp(agentPos.Y, 0.0f, 255.0f) / 16;
Vector2 windSpeed = Client.Terrain.WindSpeeds[yPos * 16 + xPos];
Vector2 windSpeed = Client.Terrain.WindSpeeds[Client.Network.CurrentSim.Handle][yPos * 16 + xPos];
return "Local wind speed is " + windSpeed.ToString();
}