fix day of defeat build

This commit is contained in:
nillerusr 2022-08-21 02:12:18 +03:00
parent 1f0ae521d6
commit 3b153bc9c3
3 changed files with 7 additions and 7 deletions

View File

@ -196,7 +196,7 @@ void CDODFreezePanel::FireGameEvent( IGameEvent * event )
C_DOD_PlayerResource *tf_PR = dynamic_cast<C_DOD_PlayerResource *>(g_PR); C_DOD_PlayerResource *tf_PR = dynamic_cast<C_DOD_PlayerResource *>(g_PR);
if ( !tf_PR ) if ( !tf_PR )
{ {
m_pNemesisSubPanel->SetDialogVariable( "nemesisname", NULL ); m_pNemesisSubPanel->SetDialogVariable( "nemesisname", 0 );
return; return;
} }
@ -664,4 +664,4 @@ void CDODFreezePanelCallout::ApplySchemeSettings( vgui::IScheme *pScheme )
BaseClass::ApplySchemeSettings( pScheme ); BaseClass::ApplySchemeSettings( pScheme );
LoadControlSettings( "resource/UI/FreezePanelCallout.res" ); LoadControlSettings( "resource/UI/FreezePanelCallout.res" );
} }

View File

@ -432,7 +432,7 @@ void CHudCredits::DrawLogo( void )
} }
vgui::HScheme scheme = vgui::scheme()->GetScheme( "ClientScheme" ); vgui::HScheme scheme = vgui::scheme()->GetScheme( "ClientScheme" );
vgui::HFont m_hTFont = vgui::scheme()->GetIScheme(scheme)->GetFont( szLogoFont ); vgui::HFont m_hTFont = vgui::scheme()->GetIScheme(scheme)->GetFont( szLogoFont, true );
int iFontTall = surface()->GetFontTall ( m_hTFont ); int iFontTall = surface()->GetFontTall ( m_hTFont );
@ -513,7 +513,7 @@ void CHudCredits::DrawIntroCreditsName( void )
continue; continue;
vgui::HScheme scheme = vgui::scheme()->GetScheme( "ClientScheme" ); vgui::HScheme scheme = vgui::scheme()->GetScheme( "ClientScheme" );
vgui::HFont m_hTFont = vgui::scheme()->GetIScheme(scheme)->GetFont( pCredit->szFontName ); vgui::HFont m_hTFont = vgui::scheme()->GetIScheme(scheme)->GetFont( pCredit->szFontName, true );
float localTime = gpGlobals->curtime - pCredit->flTimeStart; float localTime = gpGlobals->curtime - pCredit->flTimeStart;
@ -675,7 +675,7 @@ void CHudCredits::PrepareIntroCredits( void )
continue; continue;
vgui::HScheme scheme = vgui::scheme()->GetScheme( "ClientScheme" ); vgui::HScheme scheme = vgui::scheme()->GetScheme( "ClientScheme" );
vgui::HFont m_hTFont = vgui::scheme()->GetIScheme(scheme)->GetFont( pCredit->szFontName ); vgui::HFont m_hTFont = vgui::scheme()->GetIScheme(scheme)->GetFont( pCredit->szFontName, true );
pCredit->flYPos = m_flY + ( iSlot * surface()->GetFontTall ( m_hTFont ) ); pCredit->flYPos = m_flY + ( iSlot * surface()->GetFontTall ( m_hTFont ) );
pCredit->flXPos = m_flX; pCredit->flXPos = m_flX;

View File

@ -48,8 +48,8 @@ CFLAGS = {
'common': { 'common': {
# disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP # disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP
'msvc': ['/D_USING_V110_SDK71_', '/Zi', '/FS', '/Zc:threadSafeInit-'], 'msvc': ['/D_USING_V110_SDK71_', '/Zi', '/FS', '/Zc:threadSafeInit-'],
'clang': ['-g0', '-fno-strict-aliasing', '-gdwarf-2', '-fvisibility=hidden'], 'clang': ['-g0', '-fno-strict-aliasing'],
'gcc': ['-g0', '-fno-strict-aliasing', '-fvisibility=hidden'], 'gcc': ['-g0', '-fno-strict-aliasing'],
'owcc': ['-fno-short-enum', '-ffloat-store', '-g0'] 'owcc': ['-fno-short-enum', '-ffloat-store', '-g0']
}, },
'fast': { 'fast': {