diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index f2cb117..9e3d60f 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -917,10 +917,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
917 | string tile = startupConfig.GetString("MaptileStaticUUID", UUID.Zero.ToString()); | 917 | string tile = startupConfig.GetString("MaptileStaticUUID", UUID.Zero.ToString()); |
918 | UUID tileID; | 918 | UUID tileID; |
919 | 919 | ||
920 | if (UUID.TryParse(tile, out tileID)) | 920 | if ((tile!=UUID.Zero.ToString()) && UUID.TryParse(tile, out tileID)) |
921 | { | 921 | { |
922 | RegionInfo.RegionSettings.TerrainImageID = tileID; | 922 | RegionInfo.RegionSettings.TerrainImageID = tileID; |
923 | } | 923 | } |
924 | else | ||
925 | { | ||
926 | RegionInfo.RegionSettings.TerrainImageID = RegionInfo.MaptileStaticUUID; | ||
927 | m_log.InfoFormat("[SCENE]: Region {0}, maptile set to {1}", RegionInfo.RegionName, RegionInfo.MaptileStaticUUID.ToString()); | ||
928 | } | ||
924 | } | 929 | } |
925 | 930 | ||
926 | string grant = startupConfig.GetString("AllowedClients", String.Empty); | 931 | string grant = startupConfig.GetString("AllowedClients", String.Empty); |