Disable MOTD properly

This commit is contained in:
a1batross 2016-03-12 20:55:37 +03:00
parent b496903c36
commit f9c5950c48

View File

@ -63,15 +63,16 @@ void CHudMOTD :: Reset( void )
#define ROW_RANGE_MAX ( ScreenHeight - 100 )
int CHudMOTD :: Draw( float fTime )
{
if( cl_hide_motd->value != 0.0f )
{
return 1;
}
gHUD.m_iNoConsolePrint &= ~( 1 << 1 );
if( !m_bShow )
return 1;
if( cl_hide_motd->value != 0.0f )
{
Reset();
return 1;
}
gHUD.m_iNoConsolePrint |= 1 << 1;
bool bScroll;
// find the top of where the MOTD should be drawn, so the whole thing is centered in the screen