diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/TerrainData.cs | 6 |
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(); |