aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests/BasicRegionTest.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/Tests/BasicRegionTest.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs
index 179692a..e7ce8af 100644
--- a/OpenSim/Data/Tests/BasicRegionTest.cs
+++ b/OpenSim/Data/Tests/BasicRegionTest.cs
@@ -882,10 +882,10 @@ namespace OpenSim.Data.Tests
882 882
883 private double[,] GenTerrain(double value) 883 private double[,] GenTerrain(double value)
884 { 884 {
885 double[,] terret = new double[256,256]; 885 double[,] terret = new double[Constants.RegionSize, Constants.RegionSize];
886 terret.Initialize(); 886 terret.Initialize();
887 for (int x = 0; x < 256; x++) 887 for (int x = 0; x < Constants.RegionSize; x++)
888 for (int y = 0; y < 256; y++) 888 for (int y = 0; y < Constants.RegionSize; y++)
889 terret[x,y] = value; 889 terret[x,y] = value;
890 890
891 return terret; 891 return terret;
@@ -893,8 +893,8 @@ namespace OpenSim.Data.Tests
893 893
894 private bool CompareTerrain(double[,] one, double[,] two) 894 private bool CompareTerrain(double[,] one, double[,] two)
895 { 895 {
896 for (int x = 0; x < 256; x++) 896 for (int x = 0; x < Constants.RegionSize; x++)
897 for (int y = 0; y < 256; y++) 897 for (int y = 0; y < Constants.RegionSize; y++)
898 if (one[x,y] != two[x,y]) 898 if (one[x,y] != two[x,y])
899 return false; 899 return false;
900 900