fix warnings
This commit is contained in:
@@ -294,20 +294,15 @@ void Player::DrawPrimitives()
|
|||||||
|
|
||||||
// construct view and project matrix
|
// construct view and project matrix
|
||||||
RageMatrix matNewView;
|
RageMatrix matNewView;
|
||||||
if( GAMESTATE->m_PlayerOptions[m_PlayerNumber].m_bReverseScroll )
|
RageVector3 Eye, At, Up( 0.0f, -1.0f, 0.0f );
|
||||||
RageMatrixLookAtLH(
|
if( GAMESTATE->m_PlayerOptions[m_PlayerNumber].m_bReverseScroll ) {
|
||||||
&matNewView,
|
Eye = RageVector3( CENTER_X, GetY()-300.0f, 400.0f );
|
||||||
&RageVector3( CENTER_X, GetY()-300.0f, 400.0f ),
|
At = RageVector3( CENTER_X, GetY()+100.0f, 0.0f );
|
||||||
&RageVector3( CENTER_X, GetY()+100.0f, 0.0f ),
|
} else {
|
||||||
&RageVector3( 0.0f, -1.0f, 0.0f )
|
Eye = RageVector3( CENTER_X, GetY()+800.0f, 400.0f );
|
||||||
);
|
At = RageVector3( CENTER_X, GetY()+400.0f, 0.0f );
|
||||||
else
|
}
|
||||||
RageMatrixLookAtLH(
|
RageMatrixLookAtLH( &matNewView, &Eye, &At, &Up );
|
||||||
&matNewView,
|
|
||||||
&RageVector3( CENTER_X, GetY()+800.0f, 400.0f ),
|
|
||||||
&RageVector3( CENTER_X, GetY()+400.0f, 0.0f ),
|
|
||||||
&RageVector3( 0.0f, -1.0f, 0.0f )
|
|
||||||
);
|
|
||||||
|
|
||||||
DISPLAY->SetViewTransform( &matNewView );
|
DISPLAY->SetViewTransform( &matNewView );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user