aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-02-17 15:47:53 +0000
committerJustin Clarke Casey2009-02-17 15:47:53 +0000
commit829c84e69f596281d2817ee1cf07d38b1b1fcf84 (patch)
treefe63e31439d59e6c08d9c8993a9317a853c32f52 /OpenSim/Region/CoreModules/World
parent* Establish InventoryArchiveSaved event for unit tests (diff)
downloadopensim-SC_OLD-829c84e69f596281d2817ee1cf07d38b1b1fcf84.zip
opensim-SC_OLD-829c84e69f596281d2817ee1cf07d38b1b1fcf84.tar.gz
opensim-SC_OLD-829c84e69f596281d2817ee1cf07d38b1b1fcf84.tar.bz2
opensim-SC_OLD-829c84e69f596281d2817ee1cf07d38b1b1fcf84.tar.xz
* Apply http://opensimulator.org/mantis/view.php?id=3167
* Clamps textured map rgb values to 0-255 * Thanks DoranZemlja
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-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: