mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
* Removes some hard-coded magic numbers relating to RegionSize. We now use Constants.RegionSize as expected. (Working towards enlarged or smaller regionsizes that arent multiples of 256m)
* Adds minor functionality to MRM Scripting.
This commit is contained in:
@@ -882,10 +882,10 @@ namespace OpenSim.Data.Tests
|
||||
|
||||
private double[,] GenTerrain(double value)
|
||||
{
|
||||
double[,] terret = new double[256,256];
|
||||
double[,] terret = new double[Constants.RegionSize, Constants.RegionSize];
|
||||
terret.Initialize();
|
||||
for (int x = 0; x < 256; x++)
|
||||
for (int y = 0; y < 256; y++)
|
||||
for (int x = 0; x < Constants.RegionSize; x++)
|
||||
for (int y = 0; y < Constants.RegionSize; y++)
|
||||
terret[x,y] = value;
|
||||
|
||||
return terret;
|
||||
@@ -893,8 +893,8 @@ namespace OpenSim.Data.Tests
|
||||
|
||||
private bool CompareTerrain(double[,] one, double[,] two)
|
||||
{
|
||||
for (int x = 0; x < 256; x++)
|
||||
for (int y = 0; y < 256; y++)
|
||||
for (int x = 0; x < Constants.RegionSize; x++)
|
||||
for (int y = 0; y < Constants.RegionSize; y++)
|
||||
if (one[x,y] != two[x,y])
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user