From bf0b7eaecbb535356cf99ab3e2b013925d7287d6 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 18 Sep 2008 12:44:18 +0000 Subject: [PATCH] Another pointless multiplication/division removed --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }