aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLDataStore.cs
diff options
context:
space:
mode:
authorCharles Krinke2008-06-10 16:02:18 +0000
committerCharles Krinke2008-06-10 16:02:18 +0000
commit53cc63e243b33b45779b6c891e0ea40430b187df (patch)
tree6400c97254a3f13448b75b7fee182167ecd40c95 /OpenSim/Data/MySQL/MySQLDataStore.cs
parentUpdate svn properties. Formatting cleanup. (diff)
downloadopensim-SC_OLD-53cc63e243b33b45779b6c891e0ea40430b187df.zip
opensim-SC_OLD-53cc63e243b33b45779b6c891e0ea40430b187df.tar.gz
opensim-SC_OLD-53cc63e243b33b45779b6c891e0ea40430b187df.tar.bz2
opensim-SC_OLD-53cc63e243b33b45779b6c891e0ea40430b187df.tar.xz
Mantis#1501. Thank you kindly, Nebadon, for a patch that
addresses the 'terrain fill 0' error.
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLDataStore.cs')
-rw-r--r--OpenSim/Data/MySQL/MySQLDataStore.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLDataStore.cs b/OpenSim/Data/MySQL/MySQLDataStore.cs
index 9b7771c..a38a8b2 100644
--- a/OpenSim/Data/MySQL/MySQLDataStore.cs
+++ b/OpenSim/Data/MySQL/MySQLDataStore.cs
@@ -1046,7 +1046,13 @@ namespace OpenSim.Data.MySQL
1046 // TODO: COMPATIBILITY - Add byte-order conversions 1046 // TODO: COMPATIBILITY - Add byte-order conversions
1047 for (int x = 0; x < 256; x++) 1047 for (int x = 0; x < 256; x++)
1048 for (int y = 0; y < 256; y++) 1048 for (int y = 0; y < 256; y++)
1049 bw.Write(val[x, y]); 1049 {
1050 double height = val[x, y];
1051 if (height == 0.0)
1052 height = double.Epsilon;
1053
1054 bw.Write(height);
1055 }
1050 1056
1051 return str.ToArray(); 1057 return str.ToArray();
1052 } 1058 }