diff options
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLDataStore.cs | 8 |
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 | } |