mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
Suppressing MOtD Messages
This will prevent the console from saying that it couldn't find the motds that aren't even used in SP anyway.
This commit is contained in:
parent
e7df14f872
commit
7b2662f8ac
1 changed files with 4 additions and 0 deletions
|
@ -2009,6 +2009,8 @@ void CServerGameDLL::LoadSpecificMOTDMsg( const ConVar &convar, const char *pszS
|
|||
bFound = filesystem->ReadFile( szResolvedFilename, "GAME", buf );
|
||||
}
|
||||
|
||||
/* BM: No MOtDs in SP; so quit complaining about it! */
|
||||
#ifdef HL2MP
|
||||
if ( !bFound )
|
||||
{
|
||||
Msg( "'%s' not found; not loaded\n", szPreferredFilename );
|
||||
|
@ -2030,6 +2032,8 @@ void CServerGameDLL::LoadSpecificMOTDMsg( const ConVar &convar, const char *pszS
|
|||
{
|
||||
Msg( "Set %s from file '%s'. ('%s' was not found.)\n", pszStringName, szResolvedFilename, szPreferredFilename );
|
||||
}
|
||||
#endif // HL2MP
|
||||
//*/
|
||||
|
||||
g_pStringTableInfoPanel->AddString( CBaseEntity::IsServer(), pszStringName, buf.TellPut(), buf.Base() );
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue