From b8da9c3a64b84ab14642bad8c79d3b2ed62e62fb Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Mon, 23 Jul 2007 05:29:52 +0000
Subject: * Major style changes in libTerrain.Channel - now uses .NET-style
naming syntax. * Issue#218 - Updated mySQL region table.
---
.../libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
(limited to 'OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs')
diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs
index 7514971..449bf85 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs
@@ -40,7 +40,7 @@ namespace libTerrain
/// The rock angle (represented as a dy/dx ratio) at which point it will be succeptible to breakage
/// The number of erosion rounds
/// The amount of rock to carry each round
- public Channel thermalWeathering(double talus, int rounds, double c)
+ public Channel ThermalWeathering(double talus, int rounds, double c)
{
double[,] lastFrame;
double[,] thisFrame;
@@ -48,10 +48,10 @@ namespace libTerrain
lastFrame = (double[,])map.Clone();
thisFrame = (double[,])map.Clone();
- NEIGHBOURS type = NEIGHBOURS.NEIGHBOUR_MOORE; // Using moore neighbourhood (twice as computationally expensive)
+ NeighbourSystem type = NeighbourSystem.Moore; // Using moore neighbourhood (twice as computationally expensive)
int NEIGHBOUR_ME = 4; // I am always 4 in both systems.
- int NEIGHBOUR_MAX = type == NEIGHBOURS.NEIGHBOUR_MOORE ? 9 : 5;
+ int NEIGHBOUR_MAX = type == NeighbourSystem.Moore ? 9 : 5;
int frames = rounds; // Number of thermal erosion iterations to run
int i, j;
@@ -67,7 +67,7 @@ namespace libTerrain
{
if (j != NEIGHBOUR_ME)
{
- int[] coords = neighbours(type, j);
+ int[] coords = Neighbours(type, j);
coords[0] += x;
coords[1] += y;
@@ -103,7 +103,7 @@ namespace libTerrain
map = thisFrame;
- normalise(); // Just to guaruntee a smooth 0..1 value
+ Normalise(); // Just to guaruntee a smooth 0..1 value
return this;
}
}
--
cgit v1.1