From 569ba9eb9acb9f024060a41ee4188a11aafa3fa7 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 25 Sep 2007 11:48:43 +0000 Subject: Terrain: * Attempted fix for lag/pause when doing lots of updates. * Some naming fixes to libTerrain. * Refactored terrain bitmap generation into a common call for both world map and export. General: * Switched some calls to Console.WriteLine to use MainLog.Warn/Verbose/Notice. --- .../libTerrainBSD/Channel/Generators/Fracture.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Fracture.cs') diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Fracture.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Fracture.cs index 3e88aa9..3a9b7f7 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Fracture.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Fracture.cs @@ -100,7 +100,7 @@ namespace libTerrain { for (int y = 0; y < h; y++) { - double miny = Tools.linearInterpolate(a[1], b[1], (double)x / (double)w); + double miny = Tools.LinearInterpolate(a[1], b[1], (double)x / (double)w); if (v >= 0.5) { @@ -108,14 +108,14 @@ namespace libTerrain { if (y > miny) { - map[x, y] += Tools.linearInterpolate(scalemin, scalemax, z); + map[x, y] += Tools.LinearInterpolate(scalemin, scalemax, z); } } else { if (y < miny) { - map[x, y] += Tools.linearInterpolate(scalemin, scalemax, z); + map[x, y] += Tools.LinearInterpolate(scalemin, scalemax, z); } } } @@ -125,14 +125,14 @@ namespace libTerrain { if (x > miny) { - map[x, y] += Tools.linearInterpolate(scalemin, scalemax, z); + map[x, y] += Tools.LinearInterpolate(scalemin, scalemax, z); } } else { if (x < miny) { - map[x, y] += Tools.linearInterpolate(scalemin, scalemax, z); + map[x, y] += Tools.LinearInterpolate(scalemin, scalemax, z); } } } -- cgit v1.1