diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 568416c..f5117b9 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -1115,15 +1115,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
1115 | { | 1115 | { |
1116 | hfvalue = (float)hm[x, y]; | 1116 | hfvalue = (float)hm[x, y]; |
1117 | hfvaluecompare = (float)hm[x - 1, y - 1]; | 1117 | hfvaluecompare = (float)hm[x - 1, y - 1]; |
1118 | hfdiff = hfvaluecompare - hfvalue; | 1118 | |
1119 | |||
1120 | |||
1121 | if (Single.IsInfinity(hfvalue) || Single.IsNaN(hfvalue)) | 1119 | if (Single.IsInfinity(hfvalue) || Single.IsNaN(hfvalue)) |
1122 | hfvalue = 0; | 1120 | hfvalue = 0; |
1123 | 1121 | ||
1124 | if (Single.IsInfinity(hfvaluecompare) || Single.IsNaN(hfvaluecompare)) | 1122 | if (Single.IsInfinity(hfvaluecompare) || Single.IsNaN(hfvaluecompare)) |
1125 | hfvaluecompare = 0; | 1123 | hfvaluecompare = 0; |
1126 | 1124 | ||
1125 | hfdiff = hfvaluecompare - hfvalue; | ||
1126 | |||
1127 | if (hfdiff > 0.3f) | 1127 | if (hfdiff > 0.3f) |
1128 | { | 1128 | { |
1129 | 1129 | ||