From 2259bc8ebf59e85e875ac626bce2b3455034b51e Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 26 Dec 2007 01:53:08 +0000 Subject: * 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(-) (limited to 'OpenSim/Region/Physics/OdePlugin') 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 { 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++; } } -- cgit v1.1