mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-12 07:58:05 +00:00
Respect hud_saytext cvar. Remove redundant print to console (#387)
This commit is contained in:
parent
2b031dd585
commit
26d4fac2aa
@ -100,10 +100,11 @@ int CHudSayText::Draw( float flTime )
|
|||||||
int y = Y_START;
|
int y = Y_START;
|
||||||
|
|
||||||
#if USE_VGUI
|
#if USE_VGUI
|
||||||
if( ( gViewPort && gViewPort->AllowedToPrintText() == FALSE ) || !m_HUD_saytext->value )
|
if( ( gViewPort && gViewPort->AllowedToPrintText() == FALSE ) )
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
|
if ( !m_HUD_saytext->value )
|
||||||
|
return 1;
|
||||||
|
|
||||||
// make sure the scrolltime is within reasonable bounds, to guard against the clock being reset
|
// make sure the scrolltime is within reasonable bounds, to guard against the clock being reset
|
||||||
flScrollTime = Q_min( flScrollTime, flTime + m_HUD_saytext_time->value );
|
flScrollTime = Q_min( flScrollTime, flTime + m_HUD_saytext_time->value );
|
||||||
@ -173,8 +174,6 @@ void CHudSayText::SayTextPrint( const char *pszBuf, int iBufSize, int clientInde
|
|||||||
ConsolePrint( pszBuf );
|
ConsolePrint( pszBuf );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
ConsolePrint( pszBuf );
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user