* small fix

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19389 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-11-29 03:16:51 +00:00
parent 4d83ef04a2
commit ba688f3640

View File

@ -70,16 +70,13 @@ void Angle::Normalize(void)
// if the value of the angle is >=360 or <0, make it so that it is
// within those bounds
if(fAngleValue>359)
{
while(fAngleValue>359)
fAngleValue-=360;
if (fAngleValue > 360) {
while (fAngleValue > 360)
fAngleValue -= 360;
return;
}
if(fAngleValue<0)
{
while(fAngleValue<0)
fAngleValue+=360;
} else if (fAngleValue < 0) {
while (fAngleValue < 0)
fAngleValue += 360;
}
}