diff options
author | Adam Frisby | 2007-05-27 06:36:33 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-27 06:36:33 +0000 |
commit | 7a2abbb8484c8ceba990b3f5b79a0b5291c71e46 (patch) | |
tree | 9b940ab87255cfba9062c46ead6efbae80dfa640 /OpenSim/OpenSim.RegionServer/RegionInfo.cs | |
parent | * Terrain now resends when it's been tainted. This means you should be able t... (diff) | |
download | opensim-SC-7a2abbb8484c8ceba990b3f5b79a0b5291c71e46.zip opensim-SC-7a2abbb8484c8ceba990b3f5b79a0b5291c71e46.tar.gz opensim-SC-7a2abbb8484c8ceba990b3f5b79a0b5291c71e46.tar.bz2 opensim-SC-7a2abbb8484c8ceba990b3f5b79a0b5291c71e46.tar.xz |
* Added ability to set default terrain to a file in region config. If unable to open, terrain will be procedurally generated instead. (also needs testing.). Default file must be in R32 format. Use "terrain save f32 default.r32" on the region console to make a default file you can use.
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/RegionInfo.cs')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/RegionInfo.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.RegionServer/RegionInfo.cs b/OpenSim/OpenSim.RegionServer/RegionInfo.cs index f82495a..60a5861 100644 --- a/OpenSim/OpenSim.RegionServer/RegionInfo.cs +++ b/OpenSim/OpenSim.RegionServer/RegionInfo.cs | |||
@@ -175,6 +175,24 @@ namespace OpenSim | |||
175 | { | 175 | { |
176 | this.IPListenAddr = attri; | 176 | this.IPListenAddr = attri; |
177 | } | 177 | } |
178 | |||
179 | // Terrain Default File | ||
180 | attri = ""; | ||
181 | attri = configData.GetAttribute("TerrainFile"); | ||
182 | if (attri == "") | ||
183 | { | ||
184 | this.TerrainFile = OpenSim.Framework.Console.MainConsole.Instance.CmdPrompt("Terrain file default", "default.r32"); | ||
185 | configData.SetAttribute("TerrainFile", this.TerrainFile); | ||
186 | } | ||
187 | |||
188 | attri = ""; | ||
189 | attri = configData.GetAttribute("TerrainMultiplier"); | ||
190 | if (attri == "") | ||
191 | { | ||
192 | this.TerrainMultiplier = Convert.ToDouble(OpenSim.Framework.Console.MainConsole.Instance.CmdPrompt("Terrain multiplier", "60.0")); | ||
193 | configData.SetAttribute("TerrainMultiplier", this.TerrainMultiplier.ToString()); | ||
194 | } | ||
195 | |||
178 | 196 | ||
179 | if (!isSandbox) | 197 | if (!isSandbox) |
180 | { | 198 | { |