aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs b/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs
index 8f61af7..1ab8e26 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs
@@ -40,6 +40,8 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
40{ 40{
41 // Hue, Saturation, Value; used for color-interpolation 41 // Hue, Saturation, Value; used for color-interpolation
42 struct HSV { 42 struct HSV {
43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
44
43 public float h; 45 public float h;
44 public float s; 46 public float s;
45 public float v; 47 public float v;
@@ -76,10 +78,10 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
76 // (for info about algorithm, see http://en.wikipedia.org/wiki/HSL_and_HSV) 78 // (for info about algorithm, see http://en.wikipedia.org/wiki/HSL_and_HSV)
77 public Color toColor() 79 public Color toColor()
78 { 80 {
79 if (s < 0f) Console.WriteLine("S < 0: " + s); 81 if (s < 0f) m_log.Debug("S < 0: " + s);
80 else if (s > 1f) Console.WriteLine("S > 1: " + s); 82 else if (s > 1f) m_log.Debug("S > 1: " + s);
81 if (v < 0f) Console.WriteLine("V < 0: " + v); 83 if (v < 0f) m_log.Debug("V < 0: " + v);
82 else if (v > 1f) Console.WriteLine("V > 1: " + v); 84 else if (v > 1f) m_log.Debug("V > 1: " + v);
83 85
84 float f = h / 60f; 86 float f = h / 60f;
85 int sector = (int)f % 6; 87 int sector = (int)f % 6;