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
+2 -2
View File
@@ -321,8 +321,8 @@ void Actor::ScaleTo( const RectI &rect, StretchType st )
float rect_width = (float) rect.GetWidth();
float rect_height = (float) rect.GetHeight();
if( rect_width < 0 ) SetRotationY( PI );
if( rect_height < 0 ) SetRotationX( PI );
if( rect_width < 0 ) SetRotationY( 180 );
if( rect_height < 0 ) SetRotationX( 180 );
// center of the rectangle
float rect_cx = rect.left + rect_width/2;