From 0ad0c28f79dda5165bc99e2625c98f02f1d85573 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Wed, 16 Jun 2021 11:15:20 +0500 Subject: [PATCH] #ifdef->#if. --- cl_dll/hl/hl_weapons.cpp | 2 +- dlls/weapons.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cl_dll/hl/hl_weapons.cpp b/cl_dll/hl/hl_weapons.cpp index 5698ad2c..ca2c55b9 100644 --- a/cl_dll/hl/hl_weapons.cpp +++ b/cl_dll/hl/hl_weapons.cpp @@ -1062,7 +1062,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.h b/dlls/weapons.h index b7685985..f7eb16ae 100644 --- a/dlls/weapons.h +++ b/dlls/weapons.h @@ -217,7 +217,7 @@ class CBasePlayerItem : public CBaseAnimating public: virtual void SetObjectCollisionBox( void ); -#ifndef CLIENT_DLL // AJH for lockable weapons +#if !CLIENT_DLL // AJH for lockable weapons virtual void KeyValue( KeyValueData* pkvd); #endif virtual int Save( CSave &save ); @@ -267,7 +267,7 @@ public: CBasePlayerItem *m_pNext; int m_iId; // WEAPON_??? -#ifndef CLIENT_DLL//AJH Test Debug +#if !CLIENT_DLL//AJH Test Debug virtual void Spawn(); #endif//AJH virtual int iItemSlot( void )