diff options
author | Andrey Nazarov <skuller@skuller.net> | 2011-02-05 13:14:42 +0300 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2011-02-05 23:34:40 +0300 |
commit | 91ace03e843b5c39d83c2c9be8dd16f4a866991d (patch) | |
tree | d5b5b4cf17d32b39438bca4f44683b28a295948f /src | |
parent | 25c8fee79f1c44b181f9095896590c11b7f348fb (diff) |
Silence a warning when top-level menu script is not found.
Diffstat (limited to 'src')
-rw-r--r-- | src/ui_script.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui_script.c b/src/ui_script.c index 6b9a975..d8f286f 100644 --- a/src/ui_script.c +++ b/src/ui_script.c @@ -301,7 +301,10 @@ static qboolean Parse_File( const char *path, int depth ) { ret = FS_LoadFile( path, ( void ** )&raw ); if( !raw ) { - Com_Printf( "Couldn't load %s: %s\n", path, Q_ErrorString( ret ) ); + if( ret != Q_ERR_NOENT || depth ) { + Com_WPrintf( "Couldn't %s %s: %s\n", depth ? "include" : "load", + path, Q_ErrorString( ret ) ); + } return qfalse; } |