wrap row movement on ScreenOptions

fix FDB compile error
This commit is contained in:
Chris Danford
2003-07-03 08:12:06 +00:00
parent 9c9aef37c7
commit 4149ac1ef2
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -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();
+1 -1
View File
@@ -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'.",