From 3983f44584b85bc4ab21ce5fa7d3bcc20e3d4241 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Sun, 5 Jun 2022 23:21:46 +0500 Subject: [PATCH] Fix build. --- cl_dll/hud.cpp | 6 +----- cl_dll/hud_redraw.cpp | 1 - dlls/world.cpp | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/cl_dll/hud.cpp b/cl_dll/hud.cpp index a6c62713..b1b8dc8a 100644 --- a/cl_dll/hud.cpp +++ b/cl_dll/hud.cpp @@ -305,11 +305,6 @@ int __MsgFunc_ServerName( const char *pszName, int iSize, void *pbuf ) #endif return 0; } -/* -int __MsgFunc_ScoreInfo(const char *pszName, int iSize, void *pbuf) -{ - return 0; -} #if USE_VGUI && !USE_NOVGUI_SCOREBOARD int __MsgFunc_ScoreInfo(const char *pszName, int iSize, void *pbuf) @@ -332,6 +327,7 @@ int __MsgFunc_TeamInfo(const char *pszName, int iSize, void *pbuf) return gViewPort->MsgFunc_TeamInfo( pszName, iSize, pbuf ); return 0; } +#endif int __MsgFunc_Spectator( const char *pszName, int iSize, void *pbuf ) { diff --git a/cl_dll/hud_redraw.cpp b/cl_dll/hud_redraw.cpp index 1dc10655..f1b3c733 100644 --- a/cl_dll/hud_redraw.cpp +++ b/cl_dll/hud_redraw.cpp @@ -159,7 +159,6 @@ int CHud::Redraw( float flTime, int intermission ) // Take a screenshot if the client's got the cvar set if( CVAR_GET_FLOAT( "hud_takesshots" ) != 0 ) m_flShotTime = flTime + 1.0f; // Take a screenshot in a second - } } #endif if( m_flShotTime && m_flShotTime < flTime ) diff --git a/dlls/world.cpp b/dlls/world.cpp index 83a8dcff..9e3532fb 100644 --- a/dlls/world.cpp +++ b/dlls/world.cpp @@ -458,7 +458,6 @@ void CWorld::Spawn( void ) { g_fGameOver = FALSE; Precache(); - g_flWeaponCheat = CVAR_GET_FLOAT( "sv_cheats" ); // Is the impulse 101 command allowed? } void CWorld::Precache( void )