mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
#ifdef->#if.
This commit is contained in:
parent
2a32e0e66a
commit
1c849c0ba3
@ -1040,7 +1040,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 );
|
||||
|
@ -437,7 +437,7 @@ void CCrossbow::FireBolt()
|
||||
Vector vecDir = m_pPlayer->FireBulletsPlayer( 1, vecSrc, vecAiming, VECTOR_CONE_1DEGREES, 8192, BULLET_PLAYER_SNIPER, 0, 0, m_pPlayer->pev, m_pPlayer->random_seed );
|
||||
|
||||
int flags;
|
||||
#if defined( CLIENT_WEAPONS )
|
||||
#if CLIENT_WEAPONS
|
||||
flags = FEV_NOTHOST;
|
||||
#else
|
||||
flags = 0;
|
||||
|
@ -167,7 +167,7 @@ void CAK47::PrimaryAttack()
|
||||
vecDir = m_pPlayer->FireBulletsPlayer(1, vecSrc, vecAiming, vecSpread, 8192, BULLET_PLAYER_AK47, 2, 0, m_pPlayer->pev, m_pPlayer->random_seed);
|
||||
|
||||
int flags;
|
||||
#if defined( CLIENT_WEAPONS )
|
||||
#if CLIENT_WEAPONS
|
||||
flags = FEV_NOTHOST;
|
||||
#else
|
||||
flags = 0;
|
||||
|
@ -152,7 +152,7 @@ void CMac10::PrimaryAttack()
|
||||
vecDir = m_pPlayer->FireBulletsPlayer(1, vecSrc, vecAiming, vecSpread, 8192, BULLET_PLAYER_MAC10, 2, 0, m_pPlayer->pev, m_pPlayer->random_seed);
|
||||
|
||||
int flags;
|
||||
#if defined( CLIENT_WEAPONS )
|
||||
#if CLIENT_WEAPONS
|
||||
flags = FEV_NOTHOST;
|
||||
#else
|
||||
flags = 0;
|
||||
|
@ -353,7 +353,7 @@ void W_Precache( void )
|
||||
UTIL_PrecacheOtherWeapon( "weapon_mac10" );
|
||||
UTIL_PrecacheOther( "ammo_mac10" );
|
||||
|
||||
#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD )
|
||||
#if !OEM_BUILD && !HLDEMO_BUILD
|
||||
if( g_pGameRules->IsDeathmatch() )
|
||||
{
|
||||
UTIL_PrecacheOther( "weaponbox" );// container for dropped deathmatch weapons
|
||||
|
@ -582,7 +582,7 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef CLIENT_DLL
|
||||
#if !CLIENT_DLL
|
||||
int Save( CSave &save );
|
||||
int Restore( CRestore &restore );
|
||||
static TYPEDESCRIPTION m_SaveData[];
|
||||
@ -1032,7 +1032,7 @@ public:
|
||||
|
||||
BOOL UseDecrement( void )
|
||||
{
|
||||
#if defined( CLIENT_WEAPONS )
|
||||
#if CLIENT_WEAPONS
|
||||
return TRUE;
|
||||
#else
|
||||
return FALSE;
|
||||
@ -1059,7 +1059,7 @@ public:
|
||||
|
||||
BOOL UseDecrement( void )
|
||||
{
|
||||
#if defined( CLIENT_WEAPONS )
|
||||
#if CLIENT_WEAPONS
|
||||
return TRUE;
|
||||
#else
|
||||
return FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user