Move warnings meant for the user to userlog.txt. These are as inconsistent in format as before but at least they're all in one place.
This commit is contained in:
@@ -245,8 +245,8 @@ void PlayerOptions::FromString( const RString &sOptions, bool bWarnOnInvalid )
|
||||
{
|
||||
if( bWarnOnInvalid )
|
||||
{
|
||||
LOG->Warn( "Invalid player options '%s'; did you mean '*%d'?",
|
||||
s->c_str(), atoi(*s) );
|
||||
LOG->UserLog( "Invalid player options '%s'; did you mean '*%d'?",
|
||||
s->c_str(), atoi(*s) );
|
||||
}
|
||||
// XXX We know what they want, is there any reason not to handle it?
|
||||
speed = StringToFloat( *s );
|
||||
@@ -361,7 +361,7 @@ void PlayerOptions::FromString( const RString &sOptions, bool bWarnOnInvalid )
|
||||
if( bWarnOnInvalid )
|
||||
{
|
||||
RString sWarning = ssprintf( "The options string '%s' contains an invalid mod name '%s'", sOptions.c_str(), sBit.c_str() );
|
||||
LOG->Warn( "%s", sWarning.c_str() );
|
||||
LOG->UserLog( "%s", sWarning.c_str() );
|
||||
Dialog::OK( sWarning, "INVALID_PLAYER_OPTION_WARNING" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user