mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
* 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.
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user