* 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
+3 -6
View File
@@ -70,14 +70,11 @@ void Angle::Normalize(void)
// if the value of the angle is >=360 or <0, make it so that it is // if the value of the angle is >=360 or <0, make it so that it is
// within those bounds // within those bounds
if(fAngleValue>359) if (fAngleValue > 360) {
{ while (fAngleValue > 360)
while(fAngleValue>359)
fAngleValue -= 360; fAngleValue -= 360;
return; return;
} } else if (fAngleValue < 0) {
if(fAngleValue<0)
{
while (fAngleValue < 0) while (fAngleValue < 0)
fAngleValue += 360; fAngleValue += 360;
} }