wrap row movement on ScreenOptions
fix FDB compile error
This commit is contained in:
@@ -764,9 +764,9 @@ void ScreenOptions::MenuUp( PlayerNumber pn )
|
||||
continue; // skip
|
||||
|
||||
if( m_iCurrentRow[p] == 0 ) // on first row
|
||||
return; // can't go up any more
|
||||
|
||||
m_iCurrentRow[p]--;
|
||||
m_iCurrentRow[p] = m_iNumOptionRows; // on exit
|
||||
else
|
||||
m_iCurrentRow[p]--;
|
||||
}
|
||||
m_SoundPrevRow.Play();
|
||||
OnChange();
|
||||
@@ -781,9 +781,9 @@ void ScreenOptions::MenuDown( PlayerNumber pn )
|
||||
continue; // skip
|
||||
|
||||
if( m_iCurrentRow[p] == m_iNumOptionRows ) // on exit
|
||||
return; // can't go down any more
|
||||
|
||||
m_iCurrentRow[p]++;
|
||||
m_iCurrentRow[p] = 0; // on first row
|
||||
else
|
||||
m_iCurrentRow[p]++;
|
||||
}
|
||||
m_SoundNextRow.Play();
|
||||
OnChange();
|
||||
|
||||
@@ -243,7 +243,7 @@ try_element_again:
|
||||
switch( MessageBox(NULL, sMessage, "ThemeManager", MB_RETRYCANCEL ) )
|
||||
{
|
||||
case IDRETRY:
|
||||
FDB.FlushDirCache();
|
||||
FlushDirCache();
|
||||
goto try_element_again;
|
||||
case IDCANCEL:
|
||||
RageException::Throw( "Theme element '%s/%s' could not be found in '%s' or '%s'.",
|
||||
|
||||
Reference in New Issue
Block a user