* Handle "-0" values in wearable assets
* Login fix for Linux clients now that the null ID0 is blacklisted * Change Parcel from a struct to a class (this object is huge!) and remove the redundant initializers in the constructor * Moved Terrain and WindSpeed data from TerrainManager to the Simulator class * Don't track wind data either if STORE_LAND_PATCHES is disabled git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3298 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -101,15 +101,10 @@ namespace Heightmap
|
||||
if (Boxes[x, y] == sender)
|
||||
{
|
||||
float height;
|
||||
if (Client.Terrain.TerrainHeightAtPoint(Client.Network.CurrentSim.Handle,
|
||||
x * 16 + e.X, y * 16 + e.Y, out height))
|
||||
{
|
||||
if (Client.Network.CurrentSim.TerrainHeightAtPoint(x * 16 + e.X, y * 16 + e.Y, out height))
|
||||
MessageBox.Show( string.Format("{0},{1}:{2}",x*16+e.X,255-(y*16+e.Y),height) );
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Unknown height");
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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[Client.Network.CurrentSim.Handle][yPos * 16 + xPos];
|
||||
Vector2 windSpeed = Client.Network.CurrentSim.WindSpeeds[yPos * 16 + xPos];
|
||||
|
||||
return "Local wind speed is " + windSpeed.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user