From 1bae0bc6dfaf9f779a5000b8c6be4c97b896ca82 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 28 Oct 2002 19:05:28 +0000 Subject: [PATCH] fix warnings --- stepmania/src/Player.cpp | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index b7dbd29f53..c647a3f062 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -294,20 +294,15 @@ void Player::DrawPrimitives() // construct view and project matrix RageMatrix matNewView; - if( GAMESTATE->m_PlayerOptions[m_PlayerNumber].m_bReverseScroll ) - RageMatrixLookAtLH( - &matNewView, - &RageVector3( CENTER_X, GetY()-300.0f, 400.0f ), - &RageVector3( CENTER_X, GetY()+100.0f, 0.0f ), - &RageVector3( 0.0f, -1.0f, 0.0f ) - ); - else - RageMatrixLookAtLH( - &matNewView, - &RageVector3( CENTER_X, GetY()+800.0f, 400.0f ), - &RageVector3( CENTER_X, GetY()+400.0f, 0.0f ), - &RageVector3( 0.0f, -1.0f, 0.0f ) - ); + RageVector3 Eye, At, Up( 0.0f, -1.0f, 0.0f ); + if( GAMESTATE->m_PlayerOptions[m_PlayerNumber].m_bReverseScroll ) { + Eye = RageVector3( CENTER_X, GetY()-300.0f, 400.0f ); + At = RageVector3( CENTER_X, GetY()+100.0f, 0.0f ); + } else { + Eye = RageVector3( CENTER_X, GetY()+800.0f, 400.0f ); + At = RageVector3( CENTER_X, GetY()+400.0f, 0.0f ); + } + RageMatrixLookAtLH( &matNewView, &Eye, &At, &Up ); DISPLAY->SetViewTransform( &matNewView );