mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
* Cleaned up code in Terrain, Tree and Map modules.
* Fixed a bug with Terragen loader where it would do bad things on a non 256x256 sized terrain. Now loads the array correctly. * Moved MapImageModule.cs to Modules/World/WorldMap * Changed Location.RegionHandle to use Helpers.GetUlong instead of doing it ourselves.
This commit is contained in:
@@ -79,11 +79,10 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
|
||||
new Dictionary<StandardTerrainEffects, ITerrainPaintableEffect>();
|
||||
|
||||
private ITerrainChannel m_channel;
|
||||
private Dictionary<Location, ITerrainChannel> m_channels;
|
||||
private Dictionary<string, ITerrainEffect> m_plugineffects;
|
||||
private ITerrainChannel m_revert;
|
||||
private Scene m_scene;
|
||||
private bool m_tainted = false;
|
||||
private bool m_tainted;
|
||||
|
||||
#region ICommandableModule Members
|
||||
|
||||
@@ -581,7 +580,6 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
|
||||
{
|
||||
double max = Double.MinValue;
|
||||
double min = double.MaxValue;
|
||||
double avg;
|
||||
double sum = 0;
|
||||
|
||||
int x;
|
||||
@@ -598,7 +596,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
|
||||
}
|
||||
}
|
||||
|
||||
avg = sum / (m_channel.Height * m_channel.Width);
|
||||
double avg = sum / (m_channel.Height * m_channel.Width);
|
||||
|
||||
m_log.Info("Channel " + m_channel.Width + "x" + m_channel.Height);
|
||||
m_log.Info("max/min/avg/sum: " + max + "/" + min + "/" + avg + "/" + sum);
|
||||
|
||||
Reference in New Issue
Block a user