Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible.
This commit is contained in:
@@ -331,7 +331,7 @@ void ScreenSelectDifficulty::ChangePage( Page newPage )
|
||||
}
|
||||
}
|
||||
if( iSwitchToIndex == -1 )
|
||||
RageException::Throw( "%s has no selectable choices on page %i", m_sName.c_str(), newPage);
|
||||
RageException::Throw( "\"%s\" has no selectable choices on page %i.", m_sName.c_str(), newPage);
|
||||
|
||||
// change both players
|
||||
FOREACH_PlayerNumber( p )
|
||||
|
||||
Reference in New Issue
Block a user