* Fixed an issue where Terrain brushes may not update correctly.

afrisby
Adam Frisby 2007-07-25 14:38:10 +00:00
parent cd88a4914d
commit 2de8f0ef3d
2 changed files with 11 additions and 2 deletions

View File

@ -92,7 +92,16 @@ namespace OpenSim.Region.Environment.Scenes
break; break;
} }
remoteUser.SendLayerData((int)(west / 16), (int)(north / 16), Terrain.GetHeights1D()); for (int x = 0; x < 16; x++)
{
for (int y = 0; y < 16; y++)
{
if (Terrain.Tainted(x * 16, y * 16))
{
remoteUser.SendLayerData(x, y, Terrain.GetHeights1D());
}
}
}
return; return;
} }

View File

@ -76,7 +76,7 @@ namespace libTerrain
/// <param name="lowest">Drop sediment at the lowest point?</param> /// <param name="lowest">Drop sediment at the lowest point?</param>
public void AerobicErosion(double windspeed, double pickupTalusMinimum, double dropTalusMinimum, double carry, int rounds, bool lowest, bool usingFluidDynamics) public void AerobicErosion(double windspeed, double pickupTalusMinimum, double dropTalusMinimum, double carry, int rounds, bool lowest, bool usingFluidDynamics)
{ {
bool debugImages = true; bool debugImages = false;
Channel wind = new Channel(w, h) ; Channel wind = new Channel(w, h) ;
Channel sediment = new Channel(w, h); Channel sediment = new Channel(w, h);