aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorTeravus Ovares2008-08-16 20:54:51 +0000
committerTeravus Ovares2008-08-16 20:54:51 +0000
commit7c8cc345cd6cb50875857a55e897f7ff61b7fd8b (patch)
tree739e1244fb8ffb7c054a275696aa0a330bcb746b
parent* Rename *DataStore classes to *RegionData to align with SQLite (diff)
downloadopensim-SC_OLD-7c8cc345cd6cb50875857a55e897f7ff61b7fd8b.zip
opensim-SC_OLD-7c8cc345cd6cb50875857a55e897f7ff61b7fd8b.tar.gz
opensim-SC_OLD-7c8cc345cd6cb50875857a55e897f7ff61b7fd8b.tar.bz2
opensim-SC_OLD-7c8cc345cd6cb50875857a55e897f7ff61b7fd8b.tar.xz
* re-order an operation to check for NaNs in the maptile shadow routine.
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs8
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