diff options
author | Charles Krinke | 2008-06-10 16:02:18 +0000 |
---|---|---|
committer | Charles Krinke | 2008-06-10 16:02:18 +0000 |
commit | 53cc63e243b33b45779b6c891e0ea40430b187df (patch) | |
tree | 6400c97254a3f13448b75b7fee182167ecd40c95 /OpenSim | |
parent | Update svn properties. Formatting cleanup. (diff) | |
download | opensim-SC-53cc63e243b33b45779b6c891e0ea40430b187df.zip opensim-SC-53cc63e243b33b45779b6c891e0ea40430b187df.tar.gz opensim-SC-53cc63e243b33b45779b6c891e0ea40430b187df.tar.bz2 opensim-SC-53cc63e243b33b45779b6c891e0ea40430b187df.tar.xz |
Mantis#1501. Thank you kindly, Nebadon, for a patch that
addresses the 'terrain fill 0' error.
Diffstat (limited to 'OpenSim')
-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 | } |