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