change internal representation of terrain from int to ushort. This will

suporte height from 0 to 655.53m that includes SL limits ( still need to
 add code to trap eventual negative values from dbs or user input)
This commit is contained in:
UbitUmarov
2015-08-24 18:40:28 +01:00
parent 3829df1059
commit 1c752296bf
2 changed files with 21 additions and 21 deletions

View File

@@ -363,8 +363,8 @@ namespace OpenSim.Region.Framework.Scenes
public int SizeY;
public int SizeZ;
public float CompressionFactor;
public int[] Map;
public TerrainChannelXMLPackage(int pX, int pY, int pZ, float pCompressionFactor, int[] pMap)
public ushort[] Map;
public TerrainChannelXMLPackage(int pX, int pY, int pZ, float pCompressionFactor, ushort[] pMap)
{
Version = 1;
SizeX = pX;