diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index c7de12f1e5..b4369df06a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -1187,12 +1187,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api int i; double sum = 0.0; for (i = 0 ; i < GetNumberOfSides(part) ; i++) - sum += (double)((tex.GetFace((uint)i).RGBA.A * 255) / 255); + sum += (double)tex.GetFace((uint)i).RGBA.A; return sum; } if (face >= 0 && face < GetNumberOfSides(part)) { - return (double)((tex.GetFace((uint)face).RGBA.A * 255) / 255); + return (double)tex.GetFace((uint)face).RGBA.A; } return 0.0; }