From 2259bc8ebf59e85e875ac626bce2b3455034b51e Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 26 Dec 2007 01:53:08 +0000 Subject: [PATCH] * 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. --- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 83190c418a..51c0e15ffc 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -1077,7 +1077,11 @@ namespace OpenSim.Region.Physics.OdePlugin { for (int x = 0; x < 512; x++) { - returnarr[i] = resultarr2[y, x]; + if (resultarr2[y, x] <= 0) + returnarr[i] = 0.0000001f; + else + returnarr[i] = resultarr2[y, x]; + i++; } }