aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorUbitUmarov2019-11-12 18:19:12 +0000
committerUbitUmarov2019-11-12 18:19:12 +0000
commitd10f11d31064f8d6fd6bccaf907897e07cd63cef (patch)
tree3636457b544b77f56dd175925cc6382429b5087d /OpenSim/Framework
parentmore changes on terrain edit. Silent ignore comand if busy (large area smoot... (diff)
downloadopensim-SC-d10f11d31064f8d6fd6bccaf907897e07cd63cef.zip
opensim-SC-d10f11d31064f8d6fd6bccaf907897e07cd63cef.tar.gz
opensim-SC-d10f11d31064f8d6fd6bccaf907897e07cd63cef.tar.bz2
opensim-SC-d10f11d31064f8d6fd6bccaf907897e07cd63cef.tar.xz
terrain replace double by float
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/TerrainData.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Framework/TerrainData.cs b/OpenSim/Framework/TerrainData.cs
index 1a2d5d1..0e5e83e 100644
--- a/OpenSim/Framework/TerrainData.cs
+++ b/OpenSim/Framework/TerrainData.cs
@@ -194,9 +194,6 @@ namespace OpenSim.Framework
194 return ret; 194 return ret;
195 } 195 }
196 196
197 // This one dimensional version is ordered so height = map[y*sizeX+x];
198 // DEPRECATED: don't use this function as it does not retain the dimensions of the terrain
199 // and the caller will probably do the wrong thing if the terrain is not the legacy 256x256.
200 public float[] GetFloatsSerialized() 197 public float[] GetFloatsSerialized()
201 { 198 {
202 int points = SizeX * SizeY; 199 int points = SizeX * SizeY;
@@ -485,7 +482,8 @@ namespace OpenSim.Framework
485 for (int yy = 0; yy < SizeY; yy++) 482 for (int yy = 0; yy < SizeY; yy++)
486 for (int xx = 0; xx < SizeX; xx++) 483 for (int xx = 0; xx < SizeX; xx++)
487 { 484 {
488 bw.Write((float)m_heightmap[xx, yy]); 485 //bw.Write((float)m_heightmap[xx, yy]);
486 bw.Write((float)Math.Round(m_heightmap[xx, yy], 3, MidpointRounding.AwayFromZero));
489 } 487 }
490 488
491 bw.Flush(); 489 bw.Flush();