aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs b/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs
index 69d3dac..8f61af7 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/TexturedMapTileRenderer.cs
@@ -89,6 +89,15 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
89 int ti = (int)(v * (1f - (1f - f) * s) * 255f); 89 int ti = (int)(v * (1f - (1f - f) * s) * 255f);
90 int vi = (int)(v * 255f); 90 int vi = (int)(v * 255f);
91 91
92 if (pi < 0) pi = 0;
93 if (pi > 255) pi = 255;
94 if (qi < 0) qi = 0;
95 if (qi > 255) qi = 255;
96 if (ti < 0) ti = 0;
97 if (ti > 255) ti = 255;
98 if (vi < 0) vi = 0;
99 if (vi > 255) vi = 255;
100
92 switch (sector) 101 switch (sector)
93 { 102 {
94 case 0: 103 case 0: