aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs4
-rw-r--r--OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs3
2 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs b/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs
index 2e8fa9e..85afaf8 100644
--- a/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs
+++ b/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs
@@ -61,7 +61,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.FileLoaders
61 { 61 {
62 for (int j = 0; j < 256; j++) 62 for (int j = 0; j < 256; j++)
63 { 63 {
64 LookupHeightTable[i + (j * 256)] = new HeightmapLookupValue(i + (j * 256), ((double)i * ((double)j / 127.0d))); 64 LookupHeightTable[i + (j * 256)] = new HeightmapLookupValue(i + (j * 256), ((double)i * ((double)j / 128.0d)));
65 } 65 }
66 } 66 }
67 Array.Sort<HeightmapLookupValue>(LookupHeightTable); 67 Array.Sort<HeightmapLookupValue>(LookupHeightTable);
@@ -82,7 +82,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.FileLoaders
82 int x; 82 int x;
83 for (x = 0; x < retval.Width; x++) 83 for (x = 0; x < retval.Width; x++)
84 { 84 {
85 retval[x, y] = bs.ReadByte() * (bs.ReadByte() / 127.0); 85 retval[x, y] = bs.ReadByte() * (bs.ReadByte() / 128.0);
86 bs.ReadBytes(11); // Advance the stream to next bytes. 86 bs.ReadBytes(11); // Advance the stream to next bytes.
87 } 87 }
88 } 88 }
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs
index 20c0086..e2b7fb2 100644
--- a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs
@@ -279,7 +279,8 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
279 } 279 }
280 else 280 else
281 { 281 {
282 m_log.Warn("E ... " + pluginName + " (Skipping)"); 282 m_plugineffects[pluginName] = effect;
283 m_log.Warn("E ... " + pluginName + " (Replaced)");
283 } 284 }
284 } 285 }
285 } 286 }