define constants for simulation height (-100,50000m) and terrain heightmap (-100,4000). No option. compile time decision. use them at ubOde

This commit is contained in:
UbitUmarov
2020-10-12 23:20:37 +01:00
parent c7c82773d0
commit 9773ff42c2
4 changed files with 11 additions and 7 deletions

View File

@@ -2068,9 +2068,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
if (x > 1 && x < maxXX)
xx++;
val = heightMap[yy + xx];
if (val < -100.0f)
val = -100.0f;
val = Util.Clamp(heightMap[yy + xx], Constants.MinTerrainHeightmap, Constants.MaxTerrainHeightmap);
if(val > maxH)
maxH = val;
if(val < minH)