#ifdef->#if.

This commit is contained in:
Andrey Akhmichin 2021-06-14 22:28:50 +05:00
parent 2ccda84355
commit dc0a442a4a
3 changed files with 4 additions and 4 deletions

View File

@ -915,7 +915,7 @@ void _DLLEXPORT HUD_PostRunCmd( struct local_state_s *from, struct local_state_s
{ {
g_runfuncs = runfuncs; g_runfuncs = runfuncs;
#if defined( CLIENT_WEAPONS ) #if CLIENT_WEAPONS
if( cl_lw && cl_lw->value ) if( cl_lw && cl_lw->value )
{ {
HUD_WeaponsPostThink( from, to, cmd, time, random_seed ); HUD_WeaponsPostThink( from, to, cmd, time, random_seed );

View File

@ -328,7 +328,7 @@ void W_Precache( void )
UTIL_PrecacheOtherWeapon( "weapon_xs" ); UTIL_PrecacheOtherWeapon( "weapon_xs" );
UTIL_PrecacheOther( "ammo_xencandy" ); UTIL_PrecacheOther( "ammo_xencandy" );
#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD ) #if !OEM_BUILD && !HLDEMO_BUILD
if( g_pGameRules->IsDeathmatch() ) if( g_pGameRules->IsDeathmatch() )
{ {
UTIL_PrecacheOther( "weaponbox" );// container for dropped deathmatch weapons UTIL_PrecacheOther( "weaponbox" );// container for dropped deathmatch weapons

View File

@ -515,7 +515,7 @@ public:
class CCrossbow : public CBasePlayerWeapon class CCrossbow : public CBasePlayerWeapon
{ {
public: public:
#ifndef CLIENT_DLL #if !CLIENT_DLL
int Save( CSave &save ); int Save( CSave &save );
int Restore( CRestore &restore ); int Restore( CRestore &restore );
static TYPEDESCRIPTION m_SaveData[]; static TYPEDESCRIPTION m_SaveData[];
@ -770,7 +770,7 @@ public:
virtual BOOL UseDecrement( void ) virtual BOOL UseDecrement( void )
{ {
#if defined( CLIENT_WEAPONS ) #if CLIENT_WEAPONS
return TRUE; return TRUE;
#else #else
return FALSE; return FALSE;