* 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.

afrisby
Teravus Ovares 2007-12-26 01:53:08 +00:00
parent 98f4a568ad
commit 2259bc8ebf
1 changed files with 5 additions and 1 deletions

View File

@ -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++;
}
}