Another pointless multiplication/division removed

0.6.0-stable
Melanie Thielker 2008-09-18 12:44:18 +00:00
parent 1160731100
commit bf0b7eaecb
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}