diff options
author | MW | 2007-06-17 19:25:04 +0000 |
---|---|---|
committer | MW | 2007-06-17 19:25:04 +0000 |
commit | 99a308007c6c13dc13a2184eb34014de94d75ea8 (patch) | |
tree | b696f870406953b7465313e9eda4210c94f85a38 /Common | |
parent | Each Region will now generate a texture image of their terrain and this will ... (diff) | |
download | opensim-SC-99a308007c6c13dc13a2184eb34014de94d75ea8.zip opensim-SC-99a308007c6c13dc13a2184eb34014de94d75ea8.tar.gz opensim-SC-99a308007c6c13dc13a2184eb34014de94d75ea8.tar.bz2 opensim-SC-99a308007c6c13dc13a2184eb34014de94d75ea8.tar.xz |
Fixed inverted map texture problem.
Added(from trunk) the loading of terrain files defined in the region.xml files.
Diffstat (limited to '')
-rw-r--r-- | Common/OpenSim.Framework/Types/RegionInfo.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Common/OpenSim.Framework/Types/RegionInfo.cs b/Common/OpenSim.Framework/Types/RegionInfo.cs index ad1399d..2c24327 100644 --- a/Common/OpenSim.Framework/Types/RegionInfo.cs +++ b/Common/OpenSim.Framework/Types/RegionInfo.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Text; | 30 | using System.Text; |
31 | using System.Globalization; | ||
31 | using OpenSim.Framework.Interfaces; | 32 | using OpenSim.Framework.Interfaces; |
32 | using OpenSim.Framework.Utilities; | 33 | using OpenSim.Framework.Utilities; |
33 | using OpenSim.Framework.Console; | 34 | using OpenSim.Framework.Console; |
@@ -178,6 +179,32 @@ namespace OpenSim.Framework.Types | |||
178 | this.IPListenAddr = attri; | 179 | this.IPListenAddr = attri; |
179 | } | 180 | } |
180 | } | 181 | } |
182 | |||
183 | attri = ""; | ||
184 | attri = configData.GetAttribute("TerrainFile"); | ||
185 | if (attri == "") | ||
186 | { | ||
187 | this.estateSettings.terrainFile = OpenSim.Framework.Console.MainConsole.Instance.CmdPrompt("GENERAL SETTING: Default Terrain File", "default.r32"); | ||
188 | configData.SetAttribute("TerrainFile", this.estateSettings.terrainFile); | ||
189 | } | ||
190 | else | ||
191 | { | ||
192 | this.estateSettings.terrainFile = attri; | ||
193 | } | ||
194 | |||
195 | attri = ""; | ||
196 | attri = configData.GetAttribute("TerrainMultiplier"); | ||
197 | if (attri == "") | ||
198 | { | ||
199 | string re = OpenSim.Framework.Console.MainConsole.Instance.CmdPrompt("GENERAL SETTING: Terrain Height Multiplier", "60.0"); | ||
200 | this.estateSettings.terrainMultiplier = Convert.ToDouble(re, CultureInfo.InvariantCulture); | ||
201 | configData.SetAttribute("TerrainMultiplier", this.estateSettings.terrainMultiplier.ToString()); | ||
202 | } | ||
203 | else | ||
204 | { | ||
205 | this.estateSettings.terrainMultiplier = Convert.ToDouble(attri); | ||
206 | } | ||
207 | |||
181 | attri = ""; | 208 | attri = ""; |
182 | attri = configData.GetAttribute("MasterAvatarFirstName"); | 209 | attri = configData.GetAttribute("MasterAvatarFirstName"); |
183 | if (attri == "") | 210 | if (attri == "") |