diff options
author | Melanie | 2014-02-04 01:55:41 +0000 |
---|---|---|
committer | Melanie | 2014-02-04 01:55:41 +0000 |
commit | e1d1c279651784d7290241b8c4b416bc4c96ab3c (patch) | |
tree | 0a6f258ff2612b0faaf6aceadaa7be09b1f0386e /OpenSim/Data/MySQL | |
parent | Dropping the rest of Avination's modified appearance code for core. (diff) | |
parent | Add "--no-objects" parameter to 'load oar'. (diff) | |
download | opensim-SC-e1d1c279651784d7290241b8c4b416bc4c96ab3c.zip opensim-SC-e1d1c279651784d7290241b8c4b416bc4c96ab3c.tar.gz opensim-SC-e1d1c279651784d7290241b8c4b416bc4c96ab3c.tar.bz2 opensim-SC-e1d1c279651784d7290241b8c4b416bc4c96ab3c.tar.xz |
Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLSimulationData.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index 42f2ebb..2921c1c 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs | |||
@@ -616,10 +616,14 @@ namespace OpenSim.Data.MySQL | |||
616 | // Legacy region loading | 616 | // Legacy region loading |
617 | public double[,] LoadTerrain(UUID regionID) | 617 | public double[,] LoadTerrain(UUID regionID) |
618 | { | 618 | { |
619 | double[,] ret = null; | ||
619 | TerrainData terrData = LoadTerrain(regionID, (int)Constants.RegionSize, (int)Constants.RegionSize, (int)Constants.RegionHeight); | 620 | TerrainData terrData = LoadTerrain(regionID, (int)Constants.RegionSize, (int)Constants.RegionSize, (int)Constants.RegionHeight); |
620 | return terrData.GetDoubles(); | 621 | if (terrData != null) |
622 | ret = terrData.GetDoubles(); | ||
623 | return ret; | ||
621 | } | 624 | } |
622 | 625 | ||
626 | // Returns 'null' if region not found | ||
623 | public TerrainData LoadTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ) | 627 | public TerrainData LoadTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ) |
624 | { | 628 | { |
625 | TerrainData terrData = null; | 629 | TerrainData terrData = null; |