aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-03-05 00:52:35 +0000
committerAdam Frisby2008-03-05 00:52:35 +0000
commitf64611862a46c91f416134146cb53fa720a96ec5 (patch)
tree5032b3c6e85254ec62540f76f7921e47b1f7fb62 /OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs
parentonce more on hgignore, now that I think I understand this (diff)
downloadopensim-SC_OLD-f64611862a46c91f416134146cb53fa720a96ec5.zip
opensim-SC_OLD-f64611862a46c91f416134146cb53fa720a96ec5.tar.gz
opensim-SC_OLD-f64611862a46c91f416134146cb53fa720a96ec5.tar.bz2
opensim-SC_OLD-f64611862a46c91f416134146cb53fa720a96ec5.tar.xz
* New Terrain Module (disabled, search for 'usingTerrainModule = false' to reenable)
* *Much* faster terraforming (woot!) * New "Brushes" design, so you can create custom terraforming brushes then apply those inplace of the standard tools. (ie an Erode Brush for example) * New specialised "Flood Brushes" to do large area effects, ie, raise-area, now takes a bitmap rather than repeats the ordinary raise brush a thousand times. * New modular file Load/Save systems -- write importers/exporters for multiple formats without having to hard code the whole thing in. * Coming soon - effects system, ie the old Erosion functions, etc. for one-shot effects.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs
index c1ef9d6..0e98111 100644
--- a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs
+++ b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs
@@ -72,7 +72,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes
72 72
73 #region ITerrainPaintableEffect Members 73 #region ITerrainPaintableEffect Members
74 74
75 public void PaintEffect(ITerrainChannel map, double rx, double ry, double strength) 75 public void PaintEffect(ITerrainChannel map, double rx, double ry, double strength, double duration)
76 { 76 {
77 int x, y; 77 int x, y;
78 double[,] tweak = new double[map.Width, map.Height]; 78 double[,] tweak = new double[map.Width, map.Height];
@@ -106,7 +106,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes
106 { 106 {
107 for (y = 0; y < map.Height; y++) 107 for (y = 0; y < map.Height; y++)
108 { 108 {
109 double z = SphericalFactor(x, y, rx, ry, strength); 109 double z = SphericalFactor(x, y, rx, ry, strength) * duration;
110 110
111 if (z > 0) // add in non-zero amount 111 if (z > 0) // add in non-zero amount
112 { 112 {