fix crash
This commit is contained in:
@@ -592,11 +592,14 @@ void ScreenOptions::TweenCursor( PlayerNumber player_no )
|
|||||||
highlight.TweenBarWidth( iWidth );
|
highlight.TweenBarWidth( iWidth );
|
||||||
highlight.SetXY( (float)iX, (float)iY );
|
highlight.SetXY( (float)iX, (float)iY );
|
||||||
|
|
||||||
|
if( GAMESTATE->IsHumanPlayer(player_no) )
|
||||||
|
{
|
||||||
UtilCommand( m_sprLineHighlight[player_no], "ScreenOptions", "Change" );
|
UtilCommand( m_sprLineHighlight[player_no], "ScreenOptions", "Change" );
|
||||||
if( m_Rows[iCurRow]->Type == Row::ROW_EXIT )
|
if( m_Rows[iCurRow]->Type == Row::ROW_EXIT )
|
||||||
UtilCommand( m_sprLineHighlight[player_no], "ScreenOptions", "ChangeToExit" );
|
UtilCommand( m_sprLineHighlight[player_no], "ScreenOptions", "ChangeToExit" );
|
||||||
m_sprLineHighlight[player_no].SetY( (float)iY );
|
m_sprLineHighlight[player_no].SetY( (float)iY );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void ScreenOptions::UpdateText( PlayerNumber player_no, int iRow )
|
void ScreenOptions::UpdateText( PlayerNumber player_no, int iRow )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user