aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorTeravus Ovares2007-12-26 01:53:08 +0000
committerTeravus Ovares2007-12-26 01:53:08 +0000
commit2259bc8ebf59e85e875ac626bce2b3455034b51e (patch)
treedbb9286b74e766cd61c162b8833d9075dcba3a9b /OpenSim
parent* Removed a debug message I left in there (diff)
downloadopensim-SC_OLD-2259bc8ebf59e85e875ac626bce2b3455034b51e.zip
opensim-SC_OLD-2259bc8ebf59e85e875ac626bce2b3455034b51e.tar.gz
opensim-SC_OLD-2259bc8ebf59e85e875ac626bce2b3455034b51e.tar.bz2
opensim-SC_OLD-2259bc8ebf59e85e875ac626bce2b3455034b51e.tar.xz
* Added a -val heightfield value limiter so giant pits of death don't cause avatar to go into an endless plunge to the middle of the earth.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdePlugin.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
index 83190c4..51c0e15 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
@@ -1077,7 +1077,11 @@ namespace OpenSim.Region.Physics.OdePlugin
1077 { 1077 {
1078 for (int x = 0; x < 512; x++) 1078 for (int x = 0; x < 512; x++)
1079 { 1079 {
1080 returnarr[i] = resultarr2[y, x]; 1080 if (resultarr2[y, x] <= 0)
1081 returnarr[i] = 0.0000001f;
1082 else
1083 returnarr[i] = resultarr2[y, x];
1084
1081 i++; 1085 i++;
1082 } 1086 }
1083 } 1087 }