diff options
Diffstat (limited to 'OpenSim/Data/PGSQL/PGSQLSimulationData.cs')
-rw-r--r-- | OpenSim/Data/PGSQL/PGSQLSimulationData.cs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLSimulationData.cs b/OpenSim/Data/PGSQL/PGSQLSimulationData.cs index 34eb038..b063607 100644 --- a/OpenSim/Data/PGSQL/PGSQLSimulationData.cs +++ b/OpenSim/Data/PGSQL/PGSQLSimulationData.cs | |||
@@ -1364,30 +1364,6 @@ namespace OpenSim.Data.PGSQL | |||
1364 | #region Private Methods | 1364 | #region Private Methods |
1365 | 1365 | ||
1366 | /// <summary> | 1366 | /// <summary> |
1367 | /// Serializes the terrain data for storage in DB. | ||
1368 | /// </summary> | ||
1369 | /// <param name="val">terrain data</param> | ||
1370 | /// <returns></returns> | ||
1371 | private static Array serializeTerrain(double[,] val) | ||
1372 | { | ||
1373 | MemoryStream str = new MemoryStream(((int)Constants.RegionSize * (int)Constants.RegionSize) * sizeof(double)); | ||
1374 | BinaryWriter bw = new BinaryWriter(str); | ||
1375 | |||
1376 | // TODO: COMPATIBILITY - Add byte-order conversions | ||
1377 | for (int x = 0; x < (int)Constants.RegionSize; x++) | ||
1378 | for (int y = 0; y < (int)Constants.RegionSize; y++) | ||
1379 | { | ||
1380 | double height = val[x, y]; | ||
1381 | if (height == 0.0) | ||
1382 | height = double.Epsilon; | ||
1383 | |||
1384 | bw.Write(height); | ||
1385 | } | ||
1386 | |||
1387 | return str.ToArray(); | ||
1388 | } | ||
1389 | |||
1390 | /// <summary> | ||
1391 | /// Stores new regionsettings. | 1367 | /// Stores new regionsettings. |
1392 | /// </summary> | 1368 | /// </summary> |
1393 | /// <param name="regionSettings">The region settings.</param> | 1369 | /// <param name="regionSettings">The region settings.</param> |