change rotations to degrees

This commit is contained in:
Glenn Maynard
2003-04-02 06:02:55 +00:00
parent 6bf0b0c304
commit 909565b026
6 changed files with 22 additions and 22 deletions
+3 -3
View File
@@ -321,10 +321,10 @@ void ScreenSelectMusic::Update( float fDeltaTime )
}
}
float fNewRotation = m_sprCDTitle.GetRotationY()+PI*fDeltaTime/2;
fNewRotation = fmodf( fNewRotation, PI*2 );
float fNewRotation = m_sprCDTitle.GetRotationY()+180*fDeltaTime;
fNewRotation = fmodf( fNewRotation, 360 );
m_sprCDTitle.SetRotationY( fNewRotation );
if( fNewRotation > PI/2 && fNewRotation <= PI*3.0f/2 )
if( fNewRotation > 90 && fNewRotation <= 270 )
m_sprCDTitle.SetDiffuse( RageColor(0.2f,0.2f,0.2f,1) );
else
m_sprCDTitle.SetDiffuse( RageColor(1,1,1,1) );