Browse Source

fix day of defeat build

pull/114/head
nillerusr 2 years ago
parent
commit
3b153bc9c3
  1. 4
      game/client/dod/dod_hud_freezepanel.cpp
  2. 6
      game/client/hl2/hud_credits.cpp
  3. 4
      scripts/waifulib/compiler_optimizations.py

4
game/client/dod/dod_hud_freezepanel.cpp

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

6
game/client/hl2/hud_credits.cpp

@ -432,7 +432,7 @@ void CHudCredits::DrawLogo( void ) @@ -432,7 +432,7 @@ void CHudCredits::DrawLogo( void )
}
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 );
@ -513,7 +513,7 @@ void CHudCredits::DrawIntroCreditsName( void ) @@ -513,7 +513,7 @@ void CHudCredits::DrawIntroCreditsName( void )
continue;
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;
@ -675,7 +675,7 @@ void CHudCredits::PrepareIntroCredits( void ) @@ -675,7 +675,7 @@ void CHudCredits::PrepareIntroCredits( void )
continue;
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->flXPos = m_flX;

4
scripts/waifulib/compiler_optimizations.py

@ -48,8 +48,8 @@ CFLAGS = { @@ -48,8 +48,8 @@ CFLAGS = {
'common': {
# 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-'],
'clang': ['-g0', '-fno-strict-aliasing', '-gdwarf-2', '-fvisibility=hidden'],
'gcc': ['-g0', '-fno-strict-aliasing', '-fvisibility=hidden'],
'clang': ['-g0', '-fno-strict-aliasing'],
'gcc': ['-g0', '-fno-strict-aliasing'],
'owcc': ['-fno-short-enum', '-ffloat-store', '-g0']
},
'fast': {

Loading…
Cancel
Save