diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Fracture.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Fracture.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Fracture.cs index 24a8fc4..b585caa 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Fracture.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Fracture.cs | |||
@@ -42,7 +42,7 @@ namespace libTerrain | |||
42 | /// <param name="w"></param> | 42 | /// <param name="w"></param> |
43 | /// <param name="h"></param> | 43 | /// <param name="h"></param> |
44 | /// <returns></returns> | 44 | /// <returns></returns> |
45 | private int[] radialEdge256(int val) | 45 | private int[] RadialEdge256(int val) |
46 | { | 46 | { |
47 | // Four cases: | 47 | // Four cases: |
48 | // 1. 000..255 return 0,val | 48 | // 1. 000..255 return 0,val |
@@ -79,7 +79,7 @@ namespace libTerrain | |||
79 | 79 | ||
80 | throw new Exception("Out of bounds parameter (val)"); | 80 | throw new Exception("Out of bounds parameter (val)"); |
81 | } | 81 | } |
82 | public void fracture(int number, double scalemin, double scalemax) | 82 | public void Fracture(int number, double scalemin, double scalemax) |
83 | { | 83 | { |
84 | Random rand = new Random(seed); | 84 | Random rand = new Random(seed); |
85 | 85 | ||
@@ -87,8 +87,8 @@ namespace libTerrain | |||
87 | { | 87 | { |
88 | int[] a, b; | 88 | int[] a, b; |
89 | 89 | ||
90 | a = radialEdge256(rand.Next(1023)); // TODO: Broken | 90 | a = RadialEdge256(rand.Next(1023)); // TODO: Broken |
91 | b = radialEdge256(rand.Next(1023)); // TODO: Broken | 91 | b = RadialEdge256(rand.Next(1023)); // TODO: Broken |
92 | double z = rand.NextDouble(); | 92 | double z = rand.NextDouble(); |
93 | 93 | ||
94 | for (int x = 0; x < w; x++) | 94 | for (int x = 0; x < w; x++) |
@@ -104,7 +104,7 @@ namespace libTerrain | |||
104 | } | 104 | } |
105 | } | 105 | } |
106 | } | 106 | } |
107 | normalise(); | 107 | Normalise(); |
108 | } | 108 | } |
109 | } | 109 | } |
110 | } \ No newline at end of file | 110 | } \ No newline at end of file |