From dc0a442a4adfdf474c7e9c8cce9f076aa668ee9a Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Mon, 14 Jun 2021 22:28:50 +0500 Subject: [PATCH] #ifdef->#if. --- cl_dll/hl/hl_weapons.cpp | 2 +- dlls/weapons.cpp | 2 +- dlls/weapons.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cl_dll/hl/hl_weapons.cpp b/cl_dll/hl/hl_weapons.cpp index 1e62961a..27be5315 100644 --- a/cl_dll/hl/hl_weapons.cpp +++ b/cl_dll/hl/hl_weapons.cpp @@ -915,7 +915,7 @@ void _DLLEXPORT HUD_PostRunCmd( struct local_state_s *from, struct local_state_s { g_runfuncs = runfuncs; -#if defined( CLIENT_WEAPONS ) +#if CLIENT_WEAPONS if( cl_lw && cl_lw->value ) { HUD_WeaponsPostThink( from, to, cmd, time, random_seed ); diff --git a/dlls/weapons.cpp b/dlls/weapons.cpp index abbdc261..fe3be3c2 100644 --- a/dlls/weapons.cpp +++ b/dlls/weapons.cpp @@ -328,7 +328,7 @@ void W_Precache( void ) UTIL_PrecacheOtherWeapon( "weapon_xs" ); UTIL_PrecacheOther( "ammo_xencandy" ); -#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD ) +#if !OEM_BUILD && !HLDEMO_BUILD if( g_pGameRules->IsDeathmatch() ) { UTIL_PrecacheOther( "weaponbox" );// container for dropped deathmatch weapons diff --git a/dlls/weapons.h b/dlls/weapons.h index 805feff2..dda070f1 100644 --- a/dlls/weapons.h +++ b/dlls/weapons.h @@ -515,7 +515,7 @@ public: class CCrossbow : public CBasePlayerWeapon { public: -#ifndef CLIENT_DLL +#if !CLIENT_DLL int Save( CSave &save ); int Restore( CRestore &restore ); static TYPEDESCRIPTION m_SaveData[]; @@ -770,7 +770,7 @@ public: virtual BOOL UseDecrement( void ) { -#if defined( CLIENT_WEAPONS ) +#if CLIENT_WEAPONS return TRUE; #else return FALSE;