mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 23:37:58 +03:00
Fix CHudMessage::MessageDrawScan
ignoring custom font size
This commit is contained in:
parent
f8591316fa
commit
7011b893af
@ -447,6 +447,8 @@ void CHudMessage::MessageScanStart( void )
|
||||
break;
|
||||
}
|
||||
|
||||
// Font was just set in MessageDrawScan()
|
||||
#ifndef MAPBASE
|
||||
m_parms.font = g_hFontTrebuchet24;
|
||||
|
||||
if ( m_parms.vguiFontName != NULL &&
|
||||
@ -455,6 +457,7 @@ void CHudMessage::MessageScanStart( void )
|
||||
|
||||
SetFont( vgui::scheme()->GetDefaultScheme(), m_parms.vguiFontName );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -497,7 +500,19 @@ void CHudMessage::MessageDrawScan( client_textmessage_t *pMessage, float time )
|
||||
m_parms.totalWidth = 0;
|
||||
m_parms.vguiFontName = pMessage->pVGuiSchemeFontName;
|
||||
|
||||
#ifdef MAPBASE
|
||||
if ( m_parms.vguiFontName != NULL &&
|
||||
m_parms.vguiFontName[ 0 ] )
|
||||
{
|
||||
SetFont( vgui::scheme()->GetDefaultScheme(), m_parms.vguiFontName );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_parms.font = g_hFontTrebuchet24;
|
||||
}
|
||||
#else
|
||||
m_parms.font = g_hFontTrebuchet24;
|
||||
#endif
|
||||
|
||||
while ( *pText )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user