From 2de8f0ef3d34ab3343964fb960d266cf5f356941 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 25 Jul 2007 14:38:10 +0000 Subject: * Fixed an issue where Terrain brushes may not update correctly. --- OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 11 ++++++++++- .../libTerrainBSD/Channel/Manipulators/AerobicErosion.cs | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index b5faad5..27def3d 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs @@ -92,7 +92,16 @@ namespace OpenSim.Region.Environment.Scenes 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; } diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/AerobicErosion.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/AerobicErosion.cs index fecb748..589d360 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/AerobicErosion.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/AerobicErosion.cs @@ -76,7 +76,7 @@ namespace libTerrain /// Drop sediment at the lowest point? 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 sediment = new Channel(w, h); -- cgit v1.1