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 )
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" );
} }

6
game/client/hl2/hud_credits.cpp

@ -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;

4
scripts/waifulib/compiler_optimizations.py

@ -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': {

Loading…
Cancel
Save