Browse Source

#ifdef->#if.

asheep
Andrey Akhmichin 4 years ago
parent
commit
ac858f0c2f
  1. 2
      dlls/asheep/archer.cpp
  2. 2
      dlls/asheep/barneyhg.cpp
  3. 2
      dlls/asheep/beretta.cpp
  4. 2
      dlls/asheep/kmedkit.cpp
  5. 4
      dlls/asheep/m41a.cpp
  6. 2
      dlls/asheep/poolstick.cpp
  7. 6
      dlls/asheep/toad.cpp
  8. 12
      dlls/weapons.h

2
dlls/asheep/archer.cpp

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
* use or distribution of this code by or to any unlicensed person is illegal.
*
****/
#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD )
#if !OEM_BUILD && !HLDEMO_BUILD
//=========================================================
// archer

2
dlls/asheep/barneyhg.cpp

@ -43,7 +43,7 @@ void CBarneyHandGrenade::Spawn() @@ -43,7 +43,7 @@ void CBarneyHandGrenade::Spawn()
m_iId = WEAPON_BARNEYHANDGRENADE;
SET_MODEL( ENT( pev ), "models/w_grenade.mdl" );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
pev->dmg = gSkillData.plrDmgHandGrenade;
#endif
m_iDefaultAmmo = HANDGRENADE_DEFAULT_GIVE;

2
dlls/asheep/beretta.cpp

@ -146,7 +146,7 @@ void CBeretta::BerettaFire( float flSpread , float flCycleTime, BOOL fUseAutoAim @@ -146,7 +146,7 @@ void CBeretta::BerettaFire( float flSpread , float flCycleTime, BOOL fUseAutoAim
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;

2
dlls/asheep/kmedkit.cpp

@ -184,7 +184,7 @@ void CKMedKit::UseMedkit( int fMode ) @@ -184,7 +184,7 @@ void CKMedKit::UseMedkit( int fMode )
UTIL_TraceLine( vecSrc, vecEnd, dont_ignore_monsters, ENT( m_pPlayer->pev ), &tr );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
if( tr.flFraction >= 1.0f )
{
UTIL_TraceHull( vecSrc, vecEnd, dont_ignore_monsters, head_hull, ENT( m_pPlayer->pev ), &tr );

4
dlls/asheep/m41a.cpp

@ -162,7 +162,7 @@ void CM41A::PrimaryAttack() @@ -162,7 +162,7 @@ void CM41A::PrimaryAttack()
Vector vecAiming = m_pPlayer->GetAutoaimVector( AUTOAIM_5DEGREES );
Vector vecDir;
#ifdef CLIENT_DLL
#if CLIENT_DLL
if( bIsMultiplayer() )
#else
if( g_pGameRules->IsMultiplayer() )
@ -178,7 +178,7 @@ void CM41A::PrimaryAttack() @@ -178,7 +178,7 @@ void CM41A::PrimaryAttack()
}
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;

2
dlls/asheep/poolstick.cpp

@ -191,7 +191,7 @@ int CPoolstick::Swing( int fFirst ) @@ -191,7 +191,7 @@ int CPoolstick::Swing( int fFirst )
UTIL_TraceLine( vecSrc, vecEnd, dont_ignore_monsters, ENT( m_pPlayer->pev ), &tr );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
if ( tr.flFraction >= 1.0f )
{
UTIL_TraceHull( vecSrc, vecEnd, dont_ignore_monsters, head_hull, ENT( m_pPlayer->pev ), &tr );

6
dlls/asheep/toad.cpp

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
* without written permission from Valve LLC.
*
****/
#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD )
#if !OEM_BUILD && !HLDEMO_BUILD
#include "extdll.h"
#include "util.h"
@ -41,7 +41,7 @@ enum toad_e { @@ -41,7 +41,7 @@ enum toad_e {
TOAD_THROW
};
#ifndef CLIENT_DLL
#if !CLIENT_DLL
class CToadGrenade : public CGrenade
{
void Spawn( void );
@ -534,7 +534,7 @@ void CToad::PrimaryAttack() @@ -534,7 +534,7 @@ void CToad::PrimaryAttack()
// player "shoot" animation
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
CBaseEntity *pToad = CBaseEntity::Create( "monster_toad", tr.vecEndPos, m_pPlayer->pev->v_angle, m_pPlayer->edict() );
pToad->pev->velocity = gpGlobals->v_forward * 200 + m_pPlayer->pev->velocity;
#endif

12
dlls/weapons.h

@ -1033,7 +1033,7 @@ private: @@ -1033,7 +1033,7 @@ private:
class CKMedKit : public CBasePlayerWeapon
{
public:
#ifndef CLIENT_DLL
#if !CLIENT_DLL
int Save( CSave &save );
int Restore( CRestore &restore );
static TYPEDESCRIPTION m_SaveData[];
@ -1062,7 +1062,7 @@ public: @@ -1062,7 +1062,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -1096,7 +1096,7 @@ public: @@ -1096,7 +1096,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -1133,7 +1133,7 @@ public: @@ -1133,7 +1133,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -1165,7 +1165,7 @@ public: @@ -1165,7 +1165,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -1196,7 +1196,7 @@ public: @@ -1196,7 +1196,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;

Loading…
Cancel
Save