Browse Source

#ifdef->#if.

poke646
Andrey Akhmichin 4 years ago
parent
commit
dc0a442a4a
  1. 2
      cl_dll/hl/hl_weapons.cpp
  2. 2
      dlls/weapons.cpp
  3. 4
      dlls/weapons.h

2
cl_dll/hl/hl_weapons.cpp

@ -915,7 +915,7 @@ void _DLLEXPORT HUD_PostRunCmd( struct local_state_s *from, struct local_state_s @@ -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 );

2
dlls/weapons.cpp

@ -328,7 +328,7 @@ void W_Precache( void ) @@ -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

4
dlls/weapons.h

@ -515,7 +515,7 @@ public: @@ -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: @@ -770,7 +770,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;

Loading…
Cancel
Save